From ad4cb106a12b2620bc89c331bdcd8aaf41b557ed Mon Sep 17 00:00:00 2001 From: Ray Douglass Date: Thu, 27 Jul 2023 11:39:11 -0400 Subject: [PATCH] Convert CUDA version to major.minor during conda-pack --- ci/conda-pack.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/conda-pack.sh b/ci/conda-pack.sh index 7dc2cf81..813e8d3b 100755 --- a/ci/conda-pack.sh +++ b/ci/conda-pack.sh @@ -9,7 +9,8 @@ if [ "$GITHUB_REF_TYPE" = "tag" ]; then VERSION_DESCRIPTOR="" CONDA_USERNAME="rapidsai" fi -CONDA_ENV_NAME="rapids${RAPIDS_VER}${VERSION_DESCRIPTOR}_cuda${RAPIDS_CUDA_VERSION}_py${RAPIDS_PY_VERSION}" +CUDA_VERSION="${RAPIDS_CUDA_VERSION%.*}" +CONDA_ENV_NAME="rapids${RAPIDS_VER}${VERSION_DESCRIPTOR}_cuda${CUDA_VERSION}_py${RAPIDS_PY_VERSION}" echo "Install conda-pack" rapids-mamba-retry install -n base -c conda-forge "conda-pack" @@ -18,7 +19,7 @@ echo "Creating conda environment $CONDA_ENV_NAME" rapids-mamba-retry create -y -n $CONDA_ENV_NAME \ -c $CONDA_USERNAME -c conda-forge -c nvidia \ "rapids=$RAPIDS_VER" \ - "cuda-version=$RAPIDS_CUDA_VERSION" \ + "cuda-version=$CUDA_VERSION" \ "python=$RAPIDS_PY_VERSION" echo "Packing conda environment"