-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always set a default value for
PARALLEL_LEVEL
in `rapids-configure-…
…sccache` (#108) Signed-off-by: Jordan Jacobelli <[email protected]>
- Loading branch information
1 parent
74f6b6d
commit 7d8ffd5
Showing
1 changed file
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |