diff --git a/.circleci/config.yml b/.circleci/config.yml index a8aedd34670..b2193928b1e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -767,7 +767,7 @@ jobs: image: ubuntu-2004-cuda-11.4:202110-01 resource_class: gpu.nvidia.medium environment: - image_name: "pytorch/manylinux-cuda116" + image_name: "pytorch/manylinux-cuda117" CU_VERSION: << parameters.cu_version >> PYTHON_VERSION: << parameters.python_version >> steps: @@ -1363,15 +1363,6 @@ workflows: - nightly name: unittest_linux_gpu_py3.10 python_version: '3.10' - - unittest_linux_gpu: - cu_version: cu117 - filters: - branches: - only: - - main - - nightly - name: unittest_linux_gpu_py3.11 - python_version: '3.11' - unittest_windows_cpu: cu_version: cpu name: unittest_windows_cpu_py3.8 @@ -1384,10 +1375,6 @@ workflows: cu_version: cpu name: unittest_windows_cpu_py3.10 python_version: '3.10' - - unittest_windows_cpu: - cu_version: cpu - name: unittest_windows_cpu_py3.11 - python_version: '3.11' - unittest_windows_gpu: cu_version: cu117 name: unittest_windows_gpu_py3.8 @@ -1410,15 +1397,6 @@ workflows: - nightly name: unittest_windows_gpu_py3.10 python_version: '3.10' - - unittest_windows_gpu: - cu_version: cu117 - filters: - branches: - only: - - main - - nightly - name: unittest_windows_gpu_py3.11 - python_version: '3.11' - unittest_macos_cpu: cu_version: cpu name: unittest_macos_cpu_py3.8 @@ -1431,10 +1409,6 @@ workflows: cu_version: cpu name: unittest_macos_cpu_py3.10 python_version: '3.10' - - unittest_macos_cpu: - cu_version: cpu - name: unittest_macos_cpu_py3.11 - python_version: '3.11' cmake: jobs: @@ -1446,7 +1420,7 @@ workflows: cu_version: cu117 name: cmake_linux_gpu python_version: '3.8' - wheel_docker_image: pytorch/manylinux-cuda116 + wheel_docker_image: pytorch/manylinux-cuda117 - cmake_windows_cpu: cu_version: cpu name: cmake_windows_cpu diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index ab6fa6c35dd..abc99065683 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -767,7 +767,7 @@ jobs: image: ubuntu-2004-cuda-11.4:202110-01 resource_class: gpu.nvidia.medium environment: - image_name: "pytorch/manylinux-cuda116" + image_name: "pytorch/manylinux-cuda117" CU_VERSION: << parameters.cu_version >> PYTHON_VERSION: << parameters.python_version >> steps: diff --git a/.circleci/regenerate.py b/.circleci/regenerate.py index 4c1651a3a25..bd8a54e2ffb 100755 --- a/.circleci/regenerate.py +++ b/.circleci/regenerate.py @@ -262,6 +262,11 @@ def unittest_workflows(indentation=6): if os_type == "linux" and device_type == "cpu": continue for i, python_version in enumerate(PYTHON_VERSIONS): + + # Turn off unit tests for 3.11, unit test are not setup properly + if python_version == "3.11": + continue + job = { "name": f"unittest_{os_type}_{device_type}_py{python_version}", "python_version": python_version, @@ -290,7 +295,7 @@ def cmake_workflows(indentation=6): job["cu_version"] = "cu117" if device == "gpu" else "cpu" if device == "gpu" and os_type == "linux": - job["wheel_docker_image"] = "pytorch/manylinux-cuda116" + job["wheel_docker_image"] = "pytorch/manylinux-cuda117" jobs.append({f"cmake_{os_type}_{device}": job}) return indent(indentation, jobs) diff --git a/.circleci/unittest/linux/scripts/install.sh b/.circleci/unittest/linux/scripts/install.sh index 54722842a74..a15c1458dc7 100755 --- a/.circleci/unittest/linux/scripts/install.sh +++ b/.circleci/unittest/linux/scripts/install.sh @@ -5,7 +5,7 @@ unset PYTORCH_VERSION # so no need to set PYTORCH_VERSION. # In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config. -set -e +set -ex eval "$(./conda/bin/conda shell.bash hook)" conda activate ./env @@ -34,7 +34,12 @@ if [ "${os}" == "MacOSX" ]; then conda install -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}"::pytorch "${cudatoolkit}" else conda install -y -c "pytorch-${UPLOAD_CHANNEL}" -c nvidia "pytorch-${UPLOAD_CHANNEL}"::pytorch[build="*${version}*"] "${cudatoolkit}" + + # make sure local cuda is set to required cuda version and not CUDA version by default + rm -f /usr/local/cuda + ln -s /usr/local/cuda-${version} /usr/local/cuda fi + printf "* Installing torchvision\n" python setup.py develop diff --git a/.circleci/unittest/linux/scripts/setup_env.sh b/.circleci/unittest/linux/scripts/setup_env.sh index 0574cdff1cf..8a8a78f1fb2 100755 --- a/.circleci/unittest/linux/scripts/setup_env.sh +++ b/.circleci/unittest/linux/scripts/setup_env.sh @@ -5,7 +5,7 @@ # # Do not install PyTorch and torchvision here, otherwise they also get cached. -set -e +set -ex this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # Avoid error: "fatal: unsafe repository" @@ -39,7 +39,7 @@ conda activate "${env_dir}" # 3. Install Conda dependencies printf "* Installing dependencies (except PyTorch)\n" FFMPEG_PIN="=4.2" -if [[ "${PYTHON_VERSION}" = "3.9" ]]; then +if [[ "${PYTHON_VERSION}" == "3.9" ]]; then FFMPEG_PIN=">=4.2" fi diff --git a/.circleci/unittest/windows/scripts/setup_env.sh b/.circleci/unittest/windows/scripts/setup_env.sh index 5eeb2e17b48..84697875979 100644 --- a/.circleci/unittest/windows/scripts/setup_env.sh +++ b/.circleci/unittest/windows/scripts/setup_env.sh @@ -5,7 +5,7 @@ # # Do not install PyTorch and torchvision here, otherwise they also get cached. -set -e +set -ex this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" root_dir="$(git rev-parse --show-toplevel)"