Skip to content

Commit 98d0bc9

Browse files
committed
use S3 as the preprocessor cache location
1 parent d3c78d9 commit 98d0bc9

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

ci/build_cpp.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ rattler-build build --recipe conda/recipes/ucxx \
3030
"${RATTLER_CHANNELS[@]}"
3131

3232
sccache --show-adv-stats
33+
sccache --stop-server >/dev/null 2>&1 || true
3334

3435
# remove build_cache directory
3536
rm -rf "$RAPIDS_CONDA_BLD_OUTPUT_DIR"/build_cache

ci/build_wheel.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ source rapids-configure-sccache
1111
source rapids-date-string
1212
source rapids-init-pip
1313

14+
# shellcheck disable=SC2155
15+
export SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX="${package_name}/${RAPIDS_CONDA_ARCH}/cuda${RAPIDS_CUDA_VERSION%%.*}/wheel/preprocessor-cache"
16+
export SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE=true
17+
1418
rapids-generate-version > ./VERSION
1519

1620
cd "${package_dir}"
@@ -26,3 +30,4 @@ rapids-pip-retry wheel \
2630
.
2731

2832
sccache --show-adv-stats
33+
sccache --stop-server >/dev/null 2>&1 || true

conda/recipes/ucxx/recipe.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ cache:
5757
SCCACHE_REGION: ${{ env.get("SCCACHE_REGION", default="") }}
5858
SCCACHE_S3_KEY_PREFIX: libucxx/${{ env.get("RAPIDS_CONDA_ARCH") }}/cuda${{ cuda_major }}
5959
SCCACHE_S3_NO_CREDENTIALS: ${{ env.get("SCCACHE_S3_NO_CREDENTIALS", default="false") }}
60+
SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX: libucxx/${{ env.get("RAPIDS_CONDA_ARCH") }}/cuda${{ cuda_major }}/conda/preprocessor-cache
61+
SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE: ${{ env.get("SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE", default="true") }}
6062
SCCACHE_S3_USE_SSL: ${{ env.get("SCCACHE_S3_USE_SSL", default="true") }}
6163
SCCACHE_SERVER_LOG: ${{ env.get("SCCACHE_SERVER_LOG", default="sccache=debug") }}
6264

@@ -260,6 +262,8 @@ outputs:
260262
SCCACHE_REGION: ${{ env.get("SCCACHE_REGION", default="") }}
261263
SCCACHE_S3_KEY_PREFIX: ucxx/${{ env.get("RAPIDS_CONDA_ARCH") }}/cuda${{ cuda_major }}
262264
SCCACHE_S3_NO_CREDENTIALS: ${{ env.get("SCCACHE_S3_NO_CREDENTIALS", default="false") }}
265+
SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX: ucxx/${{ env.get("RAPIDS_CONDA_ARCH") }}/cuda${{ cuda_major }}/conda/preprocessor-cache
266+
SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE: ${{ env.get("SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE", default="true") }}
263267
SCCACHE_S3_USE_SSL: ${{ env.get("SCCACHE_S3_USE_SSL", default="true") }}
264268
SCCACHE_SERVER_LOG: ${{ env.get("SCCACHE_SERVER_LOG", default="sccache=debug") }}
265269
requirements:
@@ -372,6 +376,8 @@ outputs:
372376
SCCACHE_REGION: ${{ env.get("SCCACHE_REGION", default="") }}
373377
SCCACHE_S3_KEY_PREFIX: ucxx-tests/${{ env.get("RAPIDS_CONDA_ARCH") }}/cuda${{ cuda_major }}
374378
SCCACHE_S3_NO_CREDENTIALS: ${{ env.get("SCCACHE_S3_NO_CREDENTIALS", default="false") }}
379+
SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX: ucxx-tests/${{ env.get("RAPIDS_CONDA_ARCH") }}/cuda${{ cuda_major }}/conda/preprocessor-cache
380+
SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE: ${{ env.get("SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE", default="true") }}
375381
SCCACHE_S3_USE_SSL: ${{ env.get("SCCACHE_S3_USE_SSL", default="true") }}
376382
SCCACHE_SERVER_LOG: ${{ env.get("SCCACHE_SERVER_LOG", default="sccache=debug") }}
377383
requirements:

0 commit comments

Comments
 (0)