Skip to content

Commit 542862e

Browse files
authored
Improve fully cached build times. (#6127)
* Improve fully-cached build performance in CI. Reduces the build time of a fully-cached build on linux from ~15m to <5m, and on windows from >1hr to ~15m. - Switches to using the rapids fork of sccache (better nvcc whole-compilation caching) - Use Github Cache to persist sccache preprocessor caching. - Remove the scccache summary tools and replace with raw dumps. - The sccache stats output is not stable, and was broken in windows. - The full advanced stats output is more useful, as it breaks down cache by tool (nvcc, ptxas, cicc, host compiler, etc) and helps identify where cache misses are occurring. * Ensure devcontainers are using rapids sccache. Move DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST=1 into the devcontainer files from the GHA action, per review comment.
1 parent 700f2a8 commit 542862e

File tree

54 files changed

+236
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+236
-198
lines changed

.devcontainer/cuda12.0-gcc10/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc10",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "10",

.devcontainer/cuda12.0-gcc11/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc11",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "11",

.devcontainer/cuda12.0-gcc12/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc12",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "12",

.devcontainer/cuda12.0-gcc13/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc13",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "13",

.devcontainer/cuda12.0-gcc7/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc7",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "7",

.devcontainer/cuda12.0-gcc8/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc8",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "8",

.devcontainer/cuda12.0-gcc9/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-gcc9",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "9",

.devcontainer/cuda12.0-llvm14/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.0-llvm14",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.0",
2930
"CCCL_HOST_COMPILER": "llvm",
3031
"CCCL_HOST_COMPILER_VERSION": "14",

.devcontainer/cuda12.9-gcc10/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.9-gcc10",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.9",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "10",

.devcontainer/cuda12.9-gcc11/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
2626
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
2727
"DEVCONTAINER_NAME": "cuda12.9-gcc11",
28+
"DEVCONTAINER_UTILS_ENABLE_SCCACHE_DIST": "1",
2829
"CCCL_CUDA_VERSION": "12.9",
2930
"CCCL_HOST_COMPILER": "gcc",
3031
"CCCL_HOST_COMPILER_VERSION": "11",

0 commit comments

Comments
 (0)