Skip to content

Commit 6d8f56a

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Fix vision unit tests infra failures (#7332)
Summary: Co-authored-by: Nicolas Hug <[email protected]> Reviewed By: vmoens Differential Revision: D44416568 fbshipit-source-id: 772f24aae26eb7432b49399449344bce7d555c91
1 parent 4c362c1 commit 6d8f56a

File tree

6 files changed

+18
-34
lines changed

6 files changed

+18
-34
lines changed

.circleci/config.yml

Lines changed: 2 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ jobs:
767767
image: ubuntu-2004-cuda-11.4:202110-01
768768
resource_class: gpu.nvidia.medium
769769
environment:
770-
image_name: "pytorch/manylinux-cuda116"
770+
image_name: "pytorch/manylinux-cuda117"
771771
CU_VERSION: << parameters.cu_version >>
772772
PYTHON_VERSION: << parameters.python_version >>
773773
steps:

.circleci/regenerate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ def unittest_workflows(indentation=6):
262262
if os_type == "linux" and device_type == "cpu":
263263
continue
264264
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+
265270
job = {
266271
"name": f"unittest_{os_type}_{device_type}_py{python_version}",
267272
"python_version": python_version,
@@ -290,7 +295,7 @@ def cmake_workflows(indentation=6):
290295

291296
job["cu_version"] = "cu117" if device == "gpu" else "cpu"
292297
if device == "gpu" and os_type == "linux":
293-
job["wheel_docker_image"] = "pytorch/manylinux-cuda116"
298+
job["wheel_docker_image"] = "pytorch/manylinux-cuda117"
294299
jobs.append({f"cmake_{os_type}_{device}": job})
295300
return indent(indentation, jobs)
296301

.circleci/unittest/linux/scripts/install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ unset PYTORCH_VERSION
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
77

8-
set -e
8+
set -ex
99

1010
eval "$(./conda/bin/conda shell.bash hook)"
1111
conda activate ./env
@@ -34,7 +34,12 @@ if [ "${os}" == "MacOSX" ]; then
3434
conda install -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}"::pytorch "${cudatoolkit}"
3535
else
3636
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
3741
fi
3842

43+
3944
printf "* Installing torchvision\n"
4045
python setup.py develop

.circleci/unittest/linux/scripts/setup_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

8-
set -e
8+
set -ex
99

1010
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1111
# Avoid error: "fatal: unsafe repository"
@@ -39,7 +39,7 @@ conda activate "${env_dir}"
3939
# 3. Install Conda dependencies
4040
printf "* Installing dependencies (except PyTorch)\n"
4141
FFMPEG_PIN="=4.2"
42-
if [[ "${PYTHON_VERSION}" = "3.9" ]]; then
42+
if [[ "${PYTHON_VERSION}" == "3.9" ]]; then
4343
FFMPEG_PIN=">=4.2"
4444
fi
4545

.circleci/unittest/windows/scripts/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

8-
set -e
8+
set -ex
99

1010
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1111
root_dir="$(git rev-parse --show-toplevel)"

0 commit comments

Comments
 (0)