Skip to content

Commit cce7378

Browse files
authored
Merge pull request #681 from rapidsai/release/25.12
Forward-merge release/25.12 into main
2 parents c1f6a72 + 2f17423 commit cce7378

File tree

13 files changed

+80
-15
lines changed

13 files changed

+80
-15
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ENV HISTFILE="/home/coder/.cache/._bash_history"
3434
ENV AWS_ROLE_ARN="arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs"
3535
ENV SCCACHE_REGION="us-east-2"
3636
ENV SCCACHE_BUCKET="rapids-sccache-devs"
37+
ENV SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE=true
3738
ENV SCCACHE_IDLE_TIMEOUT=0
3839

3940
###

.github/workflows/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ jobs:
3939
build_type: ${{ inputs.build_type || 'branch' }}
4040
branch: ${{ inputs.branch }}
4141
date: ${{ inputs.date }}
42+
node_type: cpu8
4243
script: ci/build_cpp.sh
4344
sha: ${{ inputs.sha }}
45+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
4446
conda-python-build:
4547
needs: [conda-cpp-build]
4648
secrets: inherit
@@ -51,6 +53,7 @@ jobs:
5153
date: ${{ inputs.date }}
5254
script: ci/build_python.sh
5355
sha: ${{ inputs.sha }}
56+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
5457
upload-conda:
5558
needs: [conda-cpp-build, conda-python-build]
5659
secrets: inherit
@@ -81,12 +84,14 @@ jobs:
8184
build_type: ${{ inputs.build_type || 'branch' }}
8285
branch: ${{ inputs.branch }}
8386
date: ${{ inputs.date }}
87+
node_type: cpu8
8488
sha: ${{ inputs.sha }}
8589
script: ci/build_wheel_librapidsmpf.sh
8690
package-name: librapidsmpf
8791
package-type: cpp
8892
# build for every combination of arch and CUDA version, but only for the latest Python version
8993
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
94+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
9095
wheel-publish-librapidsmpf:
9196
needs: wheel-build-librapidsmpf
9297
secrets: inherit
@@ -106,10 +111,12 @@ jobs:
106111
build_type: ${{ inputs.build_type || 'branch' }}
107112
branch: ${{ inputs.branch }}
108113
date: ${{ inputs.date }}
114+
node_type: cpu8
109115
sha: ${{ inputs.sha }}
110116
script: ci/build_wheel_rapidsmpf.sh
111117
package-name: rapidsmpf
112118
package-type: python
119+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
113120
wheel-publish-rapidsmpf:
114121
needs: wheel-build-rapidsmpf
115122
secrets: inherit
@@ -129,9 +136,11 @@ jobs:
129136
build_type: ${{ inputs.build_type || 'branch' }}
130137
branch: ${{ inputs.branch }}
131138
date: ${{ inputs.date }}
139+
node_type: cpu8
132140
sha: ${{ inputs.sha }}
133141
script: ci/build_wheel_singlecomm.sh
134142
package-name: rapidsmpf-singlecomm
135143
package-type: python
136144
# build for every combination of arch and CUDA version, but only for the latest Python version
137145
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
146+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN

.github/workflows/pr.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,29 +66,35 @@ jobs:
6666
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
6767
with:
6868
build_type: pull-request
69+
node_type: cpu8
6970
script: ci/build_wheel_librapidsmpf.sh
7071
package-name: librapidsmpf
7172
package-type: cpp
7273
# build for every combination of arch and CUDA version, but only for the latest Python version
7374
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
75+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
7476
wheel-build-rapidsmpf:
7577
needs: [checks, wheel-build-librapidsmpf]
7678
secrets: inherit
7779
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
7880
with:
7981
build_type: pull-request
82+
node_type: cpu8
8083
script: ci/build_wheel_rapidsmpf.sh
8184
package-name: rapidsmpf
8285
package-type: python
86+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
8387
wheel-build-rapidsmpf-singlecomm:
8488
needs: [checks, wheel-build-librapidsmpf]
8589
secrets: inherit
8690
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
8791
with:
8892
build_type: pull-request
93+
node_type: cpu8
8994
script: ci/build_wheel_singlecomm.sh
9095
package-name: rapidsmpf-singlecomm
9196
package-type: python
97+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
9298
wheel-test:
9399
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python
94100
needs: [changed-files, wheel-build-rapidsmpf]
@@ -98,13 +104,16 @@ jobs:
98104
build_type: pull-request
99105
container-options: "--cap-add CAP_SYS_PTRACE --shm-size=8g --ulimit=nofile=1000000:1000000"
100106
script: ci/test_wheel.sh
107+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
101108
conda-cpp-build:
102109
needs: checks
103110
secrets: inherit
104111
uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main
105112
with:
106113
build_type: pull-request
114+
node_type: cpu8
107115
script: ci/build_cpp.sh
116+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
108117
conda-cpp-linters:
109118
secrets: inherit
110119
needs: checks
@@ -122,6 +131,7 @@ jobs:
122131
build_type: pull-request
123132
container-options: "--cap-add CAP_SYS_PTRACE --shm-size=8g --ulimit=nofile=1000000:1000000"
124133
script: ci/test_cpp.sh
134+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
125135
conda-cpp-memcheck:
126136
secrets: inherit
127137
needs: conda-cpp-build
@@ -147,6 +157,7 @@ jobs:
147157
container-options: "--cap-add CAP_SYS_PTRACE --shm-size=8g --ulimit=nofile=1000000:1000000"
148158
run_codecov: false
149159
script: ci/test_python.sh
160+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
150161
docs-build:
151162
needs: conda-python-build
152163
secrets: inherit

.github/workflows/test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
date: ${{ inputs.date }}
3434
script: ci/test_cpp.sh
3535
sha: ${{ inputs.sha }}
36+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
3637
conda-cpp-memcheck:
3738
secrets: inherit
3839
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
@@ -55,6 +56,7 @@ jobs:
5556
run_codecov: false
5657
script: ci/test_python.sh
5758
sha: ${{ inputs.sha }}
59+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
5860
wheel-test:
5961
secrets: inherit
6062
uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main
@@ -65,3 +67,4 @@ jobs:
6567
date: ${{ inputs.date }}
6668
sha: ${{ inputs.sha }}
6769
script: ci/test_wheel.sh
70+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN

ci/build_cpp.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
set -euo pipefail
66

77
source rapids-configure-sccache
8-
98
source rapids-date-string
109

1110
export CMAKE_GENERATOR=Ninja
@@ -14,6 +13,8 @@ rapids-print-env
1413

1514
rapids-logger "Begin cpp build"
1615

16+
sccache --stop-server 2>/dev/null || true
17+
1718
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version)
1819
export RAPIDS_PACKAGE_VERSION
1920

@@ -28,6 +29,7 @@ rattler-build build --recipe conda/recipes/librapidsmpf \
2829
"${RATTLER_CHANNELS[@]}"
2930

3031
sccache --show-adv-stats
32+
sccache --stop-server >/dev/null 2>&1 || true
3133

3234
# remove build_cache directory to avoid uploading the entire source tree
3335
# tracked in https://github.com/prefix-dev/rattler-build/issues/1424

ci/build_python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
set -euo pipefail
66

77
source rapids-configure-sccache
8-
98
source rapids-date-string
109

1110
export CMAKE_GENERATOR=Ninja
@@ -26,7 +25,7 @@ RAPIDS_PREPENDED_CONDA_CHANNELS=("$CPP_CHANNEL")
2625
# populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
2726
source rapids-rattler-channel-string
2827

29-
sccache --zero-stats
28+
sccache --stop-server 2>/dev/null || true
3029

3130
rapids-logger "Building rapidsmpf"
3231

@@ -35,6 +34,7 @@ rattler-build build --recipe conda/recipes/rapidsmpf \
3534
"${RATTLER_CHANNELS[@]}"
3635

3736
sccache --show-adv-stats
37+
sccache --stop-server >/dev/null 2>&1 || true
3838

3939
# remove build_cache directory to avoid uploading the entire source tree
4040
# tracked in https://github.com/prefix-dev/rattler-build/issues/1424

ci/build_wheel.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ source rapids-configure-sccache
1111
source rapids-date-string
1212
source rapids-init-pip
1313

14+
export SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX="${package_name}/${RAPIDS_CONDA_ARCH}/cuda${RAPIDS_CUDA_VERSION%%.*}/wheel/preprocessor-cache"
15+
export SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE=true
16+
1417
rapids-generate-version > ./VERSION
1518

1619
cd "${package_dir}"
1720

18-
sccache --zero-stats
21+
sccache --stop-server 2>/dev/null || true
1922

2023
rapids-logger "Building '${package_name}' wheel"
2124
rapids-pip-retry wheel \
@@ -26,3 +29,4 @@ rapids-pip-retry wheel \
2629
.
2730

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

ci/build_wheel_librapidsmpf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
6+
67
source rapids-init-pip
78

89
package_name="librapidsmpf"

ci/build_wheel_rapidsmpf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -euo pipefail
66

77
package_name="rapidsmpf"
88
package_dir="python/rapidsmpf"
9+
910
source rapids-init-pip
1011

1112
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")"

ci/build_wheel_singlecomm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# `Single` communicator may be used.
88

99
set -euo pipefail
10+
1011
source rapids-init-pip
1112

1213
package_name="librapidsmpf"

0 commit comments

Comments
 (0)