From 832e6143db12eac4b085cc64527fb752d964ef0d Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Mon, 4 Jan 2021 10:54:01 -0800 Subject: [PATCH] .circleci: Ignore unbound variables for conda For some reason conda likes to re-activate the conda environment when attempting this install which means that a deactivate is run and some variables might not exist when that happens, namely CONDA_MKL_INTERFACE_LAYER_BACKUP from libblas so let's just ignore unbound variables when it comes to the conda installation commands Signed-off-by: Eli Uriegas [ghstack-poisoned] --- .circleci/scripts/binary_linux_test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/scripts/binary_linux_test.sh b/.circleci/scripts/binary_linux_test.sh index 0b2e60b48f8e..26cc77c8ff9c 100755 --- a/.circleci/scripts/binary_linux_test.sh +++ b/.circleci/scripts/binary_linux_test.sh @@ -51,7 +51,14 @@ if [[ "$PACKAGE_TYPE" == conda ]]; then else cu_ver="${DESIRED_CUDA:2:2}.${DESIRED_CUDA:4}" fi - retry conda install \${EXTRA_CONDA_FLAGS} -yq -c nvidia -c pytorch "cudatoolkit=\${cu_ver}" + ( + # For some reason conda likes to re-activate the conda environment when attempting this install + # which means that a deactivate is run and some variables might not exist when that happens, + # namely CONDA_MKL_INTERFACE_LAYER_BACKUP from libblas so let's just ignore unbound variables when + # it comes to the conda installation commands + set +u + retry conda install \${EXTRA_CONDA_FLAGS} -yq -c nvidia -c pytorch "cudatoolkit=\${cu_ver}" + ) fi elif [[ "$PACKAGE_TYPE" != libtorch ]]; then pip install "\$pkg"