File tree Expand file tree Collapse file tree 6 files changed +18
-34
lines changed Expand file tree Collapse file tree 6 files changed +18
-34
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ jobs:
767
767
image: ubuntu-2004-cuda-11.4:202110-01
768
768
resource_class: gpu.nvidia.medium
769
769
environment:
770
- image_name: "pytorch/manylinux-cuda116 "
770
+ image_name: "pytorch/manylinux-cuda117 "
771
771
CU_VERSION: << parameters.cu_version >>
772
772
PYTHON_VERSION: << parameters.python_version >>
773
773
steps:
Original file line number Diff line number Diff line change @@ -262,6 +262,11 @@ def unittest_workflows(indentation=6):
262
262
if os_type == "linux" and device_type == "cpu" :
263
263
continue
264
264
for i , python_version in enumerate (PYTHON_VERSIONS ):
265
+
266
+ # Turn off unit tests for 3.11, unit test are not setup properly
267
+ if python_version == "3.11" :
268
+ continue
269
+
265
270
job = {
266
271
"name" : f"unittest_{ os_type } _{ device_type } _py{ python_version } " ,
267
272
"python_version" : python_version ,
@@ -290,7 +295,7 @@ def cmake_workflows(indentation=6):
290
295
291
296
job ["cu_version" ] = "cu117" if device == "gpu" else "cpu"
292
297
if device == "gpu" and os_type == "linux" :
293
- job ["wheel_docker_image" ] = "pytorch/manylinux-cuda116 "
298
+ job ["wheel_docker_image" ] = "pytorch/manylinux-cuda117 "
294
299
jobs .append ({f"cmake_{ os_type } _{ device } " : job })
295
300
return indent (indentation , jobs )
296
301
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ unset PYTORCH_VERSION
5
5
# so no need to set PYTORCH_VERSION.
6
6
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7
7
8
- set -e
8
+ set -ex
9
9
10
10
eval " $( ./conda/bin/conda shell.bash hook) "
11
11
conda activate ./env
@@ -34,7 +34,12 @@ if [ "${os}" == "MacOSX" ]; then
34
34
conda install -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} " ::pytorch " ${cudatoolkit} "
35
35
else
36
36
conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} "
37
+
38
+ # make sure local cuda is set to required cuda version and not CUDA version by default
39
+ rm -f /usr/local/cuda
40
+ ln -s /usr/local/cuda-${version} /usr/local/cuda
37
41
fi
38
42
43
+
39
44
printf " * Installing torchvision\n"
40
45
python setup.py develop
Original file line number Diff line number Diff line change 5
5
#
6
6
# Do not install PyTorch and torchvision here, otherwise they also get cached.
7
7
8
- set -e
8
+ set -ex
9
9
10
10
this_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
11
11
# Avoid error: "fatal: unsafe repository"
@@ -39,7 +39,7 @@ conda activate "${env_dir}"
39
39
# 3. Install Conda dependencies
40
40
printf " * Installing dependencies (except PyTorch)\n"
41
41
FFMPEG_PIN=" =4.2"
42
- if [[ " ${PYTHON_VERSION} " = " 3.9" ]]; then
42
+ if [[ " ${PYTHON_VERSION} " == " 3.9" ]]; then
43
43
FFMPEG_PIN=" >=4.2"
44
44
fi
45
45
Original file line number Diff line number Diff line change 5
5
#
6
6
# Do not install PyTorch and torchvision here, otherwise they also get cached.
7
7
8
- set -e
8
+ set -ex
9
9
10
10
this_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
11
11
root_dir=" $( git rev-parse --show-toplevel) "
You can’t perform that action at this time.
0 commit comments