@@ -48,11 +48,11 @@ binary_common: &binary_common
4848 build_version:
4949 description: "version number of release binary; by default, build a nightly"
5050 type: string
51- default: "0.8.0 "
51+ default: "0.8.2 "
5252 pytorch_version:
5353 description: "PyTorch version to build against; by default, use a nightly"
5454 type: string
55- default: "1.7.0 "
55+ default: "1.7.1 "
5656 # Don't edit these
5757 python_version:
5858 description: "Python version to build against (e.g., 3.7)"
@@ -368,7 +368,11 @@ jobs:
368368 set -x
369369 eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
370370 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}
372376 conda activate python${PYTHON_VERSION}
373377 conda install Pillow
374378 conda install -v -y -c pytorch-nightly pytorch
@@ -393,7 +397,11 @@ jobs:
393397 command: |
394398 set -x
395399 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}
397405 conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
398406 conda activate python${PYTHON_VERSION}
399407 pip install $(ls ~/workspace/torchvision*.whl) --pre -f https://download.pytorch.org/whl/nightly/torch_nightly.html
@@ -464,7 +472,7 @@ jobs:
464472 {% endraw %}
465473 - run:
466474 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
468476 - save_cache:
469477 {% raw %}
470478 key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
@@ -474,7 +482,7 @@ jobs:
474482 - env
475483 - run:
476484 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
478486 - run:
479487 name: Run tests
480488 command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
0 commit comments