diff --git a/ci/cpu/build.sh b/ci/cpu/build.sh index 80e0600fef..2ae382ec65 100755 --- a/ci/cpu/build.sh +++ b/ci/cpu/build.sh @@ -34,6 +34,10 @@ fi # ucx-py version export UCX_PY_VERSION='0.25.*' +export CMAKE_CUDA_COMPILER_LAUNCHER="sccache" +export CMAKE_CXX_COMPILER_LAUNCHER="sccache" +export CMAKE_C_COMPILER_LAUNCHER="sccache" + ################################################################################ # SETUP - Check environment ################################################################################ @@ -80,7 +84,6 @@ fi ################################################################################ # BUILD - Conda package builds (conda deps: libcuml <- cuml) ################################################################################ - if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then if [ "$BUILD_LIBCUML" == '1' -o "$BUILD_CUML" == '1' ]; then gpuci_logger "Build conda pkg for libcuml" @@ -94,6 +97,8 @@ else mv ${CONDA_BLD_DIR}/work/ ${CONDA_BLD_DIR}/libcuml/work fi fi +gpuci_logger "sccache stats" +sccache --show-stats if [ "$BUILD_CUML" == '1' ]; then if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then diff --git a/ci/gpu/build.sh b/ci/gpu/build.sh index b941e2641e..85bd29c631 100755 --- a/ci/gpu/build.sh +++ b/ci/gpu/build.sh @@ -34,6 +34,10 @@ export MINOR_VERSION=`echo $GIT_DESCRIBE_TAG | grep -o -E '([0-9]+\.[0-9]+)'` # ucx-py version export UCX_PY_VERSION='0.25.*' +export CMAKE_CUDA_COMPILER_LAUNCHER="sccache" +export CMAKE_CXX_COMPILER_LAUNCHER="sccache" +export CMAKE_C_COMPILER_LAUNCHER="sccache" + ################################################################################ # SETUP - Check environment ################################################################################ diff --git a/conda/recipes/libcuml/meta.yaml b/conda/recipes/libcuml/meta.yaml index 9f395b637b..bcdbdeb2bf 100644 --- a/conda/recipes/libcuml/meta.yaml +++ b/conda/recipes/libcuml/meta.yaml @@ -24,13 +24,15 @@ build: - PARALLEL_LEVEL - VERSION_SUFFIX - PROJECT_FLASH - - CCACHE_DIR - - CCACHE_NOHASHDIR - - CCACHE_COMPILERCHECK - CMAKE_GENERATOR - CMAKE_C_COMPILER_LAUNCHER - CMAKE_CXX_COMPILER_LAUNCHER - CMAKE_CUDA_COMPILER_LAUNCHER + - SCCACHE_S3_KEY_PREFIX=libcuml-aarch64 # [aarch64] + - SCCACHE_S3_KEY_PREFIX=libcuml-linux64 # [linux64] + - SCCACHE_BUCKET=rapids-sccache + - SCCACHE_REGION=us-west-2 + - SCCACHE_IDLE_TIMEOUT=32768 requirements: build: