Skip to content

Commit

Permalink
Always set a default value for PARALLEL_LEVEL in `rapids-configure-…
Browse files Browse the repository at this point in the history
…sccache` (#108)

Signed-off-by: Jordan Jacobelli <jjacobelli@nvidia.com>
  • Loading branch information
jjacobelli authored May 30, 2024
1 parent 74f6b6d commit 7d8ffd5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tools/rapids-configure-sccache
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash
# A utility script that configures sccache environment variables

export CMAKE_CUDA_COMPILER_LAUNCHER=sccache
export CMAKE_CXX_COMPILER_LAUNCHER=sccache
export CMAKE_C_COMPILER_LAUNCHER=sccache
export SCCACHE_BUCKET=rapids-sccache-east
export SCCACHE_REGION=us-east-2
export SCCACHE_IDLE_TIMEOUT=32768
export SCCACHE_S3_USE_SSL=true
export SCCACHE_S3_NO_CREDENTIALS=false
export CMAKE_CUDA_COMPILER_LAUNCHER=sccache
export CMAKE_CXX_COMPILER_LAUNCHER=sccache
export CMAKE_C_COMPILER_LAUNCHER=sccache
export PARALLEL_LEVEL=${PARALLEL_LEVEL:-$(nproc --all --ignore=2)}
export SCCACHE_BUCKET=rapids-sccache-east
export SCCACHE_IDLE_TIMEOUT=32768
export SCCACHE_REGION=us-east-2
export SCCACHE_S3_NO_CREDENTIALS=false
export SCCACHE_S3_USE_SSL=true

if [ "${CI:-false}" = "false" ]; then
# Configure sccache for read-only mode since no credentials
# are available in local builds.
export SCCACHE_S3_NO_CREDENTIALS=true
export PARALLEL_LEVEL=${PARALLEL_LEVEL:-$(nproc)}
fi

0 comments on commit 7d8ffd5

Please sign in to comment.