Skip to content

Commit

Permalink
Convert CUDA version to major.minor during conda-pack (#670)
Browse files Browse the repository at this point in the history
Should fix the build problem seen here: https://github.com/rapidsai/integration/actions/runs/5681986332/job/15399831914

Filed an issue to follow up on CI for this: #671

Authors:
  - Ray Douglass (https://github.com/raydouglass)

Approvers:
  - AJ Schmidt (https://github.com/ajschmidt8)

URL: #670
  • Loading branch information
raydouglass authored Jul 27, 2023
1 parent f0c7766 commit c642f34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/conda-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit c642f34

Please sign in to comment.