@@ -48,11 +48,11 @@ binary_common: &binary_common
48
48
build_version:
49
49
description: "version number of release binary; by default, build a nightly"
50
50
type: string
51
- default: "0.8.0 "
51
+ default: "0.8.2 "
52
52
pytorch_version:
53
53
description: "PyTorch version to build against; by default, use a nightly"
54
54
type: string
55
- default: "1.7.0 "
55
+ default: "1.7.1 "
56
56
# Don't edit these
57
57
python_version:
58
58
description: "Python version to build against (e.g., 3.7)"
@@ -368,7 +368,11 @@ jobs:
368
368
set -x
369
369
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
370
370
conda env remove -n python${PYTHON_VERSION} || true
371
- conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
371
+ CONDA_CHANNEL_FLAGS=""
372
+ if [[ "${PYTHON_VERSION}" = 3.9 ]]; then
373
+ CONDA_CHANNEL_FLAGS="-c=conda-forge"
374
+ fi
375
+ conda create ${CONDA_CHANNEL_FLAGS} -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
372
376
conda activate python${PYTHON_VERSION}
373
377
conda install Pillow
374
378
conda install -v -y -c pytorch-nightly pytorch
@@ -393,7 +397,11 @@ jobs:
393
397
command: |
394
398
set -x
395
399
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
396
- conda env remove -n python${PYTHON_VERSION} || true
400
+ CONDA_CHANNEL_FLAGS=""
401
+ if [[ "${PYTHON_VERSION}" = 3.9 ]]; then
402
+ CONDA_CHANNEL_FLAGS="-c=conda-forge"
403
+ fi
404
+ conda create ${CONDA_CHANNEL_FLAGS} -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
397
405
conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
398
406
conda activate python${PYTHON_VERSION}
399
407
pip install $(ls ~/workspace/torchvision*.whl) --pre -f https://download.pytorch.org/whl/nightly/torch_nightly.html
@@ -464,7 +472,7 @@ jobs:
464
472
{% endraw %}
465
473
- run:
466
474
name: Setup
467
- command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
475
+ command: docker run -t --gpus all -v $PWD:$PWD -w $PWD -e PYTHON_VERSION "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
468
476
- save_cache:
469
477
{% raw %}
470
478
key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
@@ -474,7 +482,7 @@ jobs:
474
482
- env
475
483
- run:
476
484
name: Install torchvision
477
- command: docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL "${image_name}" .circleci/unittest/linux/scripts/install.sh
485
+ command: docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL -e CU_VERSION "${image_name}" .circleci/unittest/linux/scripts/install.sh
478
486
- run:
479
487
name: Run tests
480
488
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
0 commit comments