Skip to content

Commit 8d16a1a

Browse files
committed
refactor: only use strict channel priority for CUDA>=12
1 parent 6e3115b commit 8d16a1a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

ci/build_cpp.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
set -euo pipefail
55

66
rapids-configure-conda-channels
7-
# `rapids-configure-conda-channels` should only insert `rapidsai` channel into release builds
8-
conda config --remove channels rapidsai
9-
107

118
# Setting channel priority per-repo until all RAPIDS can build using strict channel priority
129
# This will be replaced when we port this recipe to `rattler-build`
13-
if [[ "$RAPIDS_CUDA_VERSION" == 11.8* && "$RAPIDS_CONDA_ARCH" == "linux64" ]]; then
14-
rapids-logger "Not setting strict priority because of libcufile version constraints"
10+
if [[ "$RAPIDS_CUDA_VERSION" == 11.* ]]; then
11+
rapids-logger "Channel priority disabled for CUDA 11 builds"
1512
else
16-
rapids-logger "Setting strict channel priority for conda builds"
13+
rapids-logger "Setting strict channel priority for CUDA 12 builds"
1714
conda config --set channel_priority strict
1815
fi
1916

ci/build_python.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
set -euo pipefail
55

66
rapids-configure-conda-channels
7-
# `rapids-configure-conda-channels` should only insert `rapidsai` channel into release builds
8-
conda config --remove channels rapidsai
97

108
# Setting channel priority per-repo until all RAPIDS can build using strict channel priority
119
# This will be replaced when we port this recipe to `rattler-build`
12-
if [[ "$RAPIDS_CUDA_VERSION" == 11.8* && "$RAPIDS_CONDA_ARCH" == "linux64" ]]; then
13-
rapids-logger "Not setting strict priority because of libcufile version constraints"
10+
if [[ "$RAPIDS_CUDA_VERSION" == 11.* ]]; then
11+
rapids-logger "Channel priority disabled for CUDA 11 builds"
1412
else
15-
rapids-logger "Setting strict channel priority for conda builds"
13+
rapids-logger "Setting strict channel priority for CUDA 12 builds"
1614
conda config --set channel_priority strict
1715
fi
1816

0 commit comments

Comments
 (0)