From 1e0609f02c5db2147bf413b51bc3b0d8ae49fd17 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 29 Oct 2024 09:45:54 -0500 Subject: [PATCH] print sccache stats in builds --- .pre-commit-config.yaml | 2 +- ci/build_python.sh | 4 ++++ ci/build_wheel.sh | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df6e0b46..dcd83501 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - --fix - --rapids-version=24.12 - repo: https://github.com/rapidsai/dependency-file-generator - rev: v1.13.11 + rev: v1.16.0 hooks: - id: rapids-dependency-file-generator args: ["--clean"] diff --git a/ci/build_python.sh b/ci/build_python.sh index 1e423cc1..1ab4108c 100755 --- a/ci/build_python.sh +++ b/ci/build_python.sh @@ -16,7 +16,11 @@ rapids-generate-version > ./VERSION rapids-logger "Begin py build" conda config --set path_conflict prevent +sccache --show-zero-stats + RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-conda-retry mambabuild \ conda/recipes/ucx-py +sccache --show-adv-stats + rapids-upload-conda-to-s3 python diff --git a/ci/build_wheel.sh b/ci/build_wheel.sh index 7db292dd..5dfcb536 100755 --- a/ci/build_wheel.sh +++ b/ci/build_wheel.sh @@ -13,8 +13,12 @@ rapids-generate-version > ./VERSION RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" +sccache --zero-stats + python -m pip wheel . -w dist --no-deps --disable-pip-version-check --config-settings rapidsai.disable-cuda=false +sccache --show-adv-stats + mkdir -p final_dist python -m auditwheel repair \ -w final_dist \