From 679cb038e3979660c98e6b68941e01d912ae9c18 Mon Sep 17 00:00:00 2001 From: Licht Takeuchi Date: Sun, 8 Nov 2020 19:42:51 +0900 Subject: [PATCH] Fix GPU CI so that it runs on Python 3.8 --- .circleci/config.yml | 4 +++- .circleci/config.yml.in | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3c1975eaa50..a905e5616c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -455,6 +455,7 @@ jobs: resource_class: gpu.small environment: image_name: "pytorch/manylinux-cuda101" + PYTHON_VERSION: << parameters.python_version >> steps: - checkout - designate_upload_channel @@ -469,7 +470,7 @@ jobs: - run: name: Setup - command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh + command: docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh - save_cache: key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }} @@ -533,6 +534,7 @@ jobs: name: windows-gpu environment: CUDA_VERSION: "10.1" + PYTHON_VERSION: << parameters.python_version >> steps: - checkout - designate_upload_channel diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index f05022e47ca..eadaaadc0d8 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -455,6 +455,7 @@ jobs: resource_class: gpu.small environment: image_name: "pytorch/manylinux-cuda101" + PYTHON_VERSION: << parameters.python_version >> steps: - checkout - designate_upload_channel @@ -469,7 +470,7 @@ jobs: {% endraw %} - run: name: Setup - command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh + command: docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh - save_cache: {% raw %} key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }} @@ -533,6 +534,7 @@ jobs: name: windows-gpu environment: CUDA_VERSION: "10.1" + PYTHON_VERSION: << parameters.python_version >> steps: - checkout - designate_upload_channel