Skip to content

Commit e737e68

Browse files
ENH Build with Ninja & Pass ccache variables to conda recipe (#705)
Changes: - Enables `ninja` build system - Exposes `ccache` environment variables to the conda build These changes are required to allow `ccache` to function correctly and have a high cache hitrate during builds. Authors: - Dillon Cullinan (@dillon-cullinan) Approvers: - Jordan Jacobelli (@ethyling) - Keith Kraus (@kkraus14) - Mark Harris (@harrism) URL: #705
1 parent 47680ec commit e737e68

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/cpu/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
######################################
66
set -e
77

8-
# Set path and build parallel level
8+
# Set path, build parallel level and build generator
99
export PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH
1010
export PARALLEL_LEVEL=${PARALLEL_LEVEL:-4}
11+
export CMAKE_GENERATOR="Ninja"
1112

1213
# Set home to the job's workspace
1314
export HOME=$WORKSPACE

conda/recipes/librmm/meta.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ build:
1818
- CUDAHOSTCXX
1919
- PARALLEL_LEVEL
2020
- VERSION_SUFFIX
21+
- CCACHE_DIR
22+
- CCACHE_NOHASHDIR
23+
- CCACHE_COMPILERCHECK
24+
- CMAKE_GENERATOR
25+
- CMAKE_C_COMPILER_LAUNCHER
26+
- CMAKE_CXX_COMPILER_LAUNCHER
27+
- CMAKE_CUDA_COMPILER_LAUNCHER
2128
run_exports:
2229
- {{ pin_subpackage("librmm", max_pin="x.x") }}
2330

0 commit comments

Comments
 (0)