From e737e688eee086be7cbd1e5e8fd56af9c86843f8 Mon Sep 17 00:00:00 2001 From: Dillon Cullinan Date: Mon, 22 Feb 2021 16:16:37 -0500 Subject: [PATCH] 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: https://github.com/rapidsai/rmm/pull/705 --- ci/cpu/build.sh | 3 ++- conda/recipes/librmm/meta.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/cpu/build.sh b/ci/cpu/build.sh index e77281c75..71a2daf53 100755 --- a/ci/cpu/build.sh +++ b/ci/cpu/build.sh @@ -5,9 +5,10 @@ ###################################### set -e -# Set path and build parallel level +# Set path, build parallel level and build generator export PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH export PARALLEL_LEVEL=${PARALLEL_LEVEL:-4} +export CMAKE_GENERATOR="Ninja" # Set home to the job's workspace export HOME=$WORKSPACE diff --git a/conda/recipes/librmm/meta.yaml b/conda/recipes/librmm/meta.yaml index 73d479725..7f7e8f0cf 100644 --- a/conda/recipes/librmm/meta.yaml +++ b/conda/recipes/librmm/meta.yaml @@ -18,6 +18,13 @@ build: - CUDAHOSTCXX - PARALLEL_LEVEL - VERSION_SUFFIX + - CCACHE_DIR + - CCACHE_NOHASHDIR + - CCACHE_COMPILERCHECK + - CMAKE_GENERATOR + - CMAKE_C_COMPILER_LAUNCHER + - CMAKE_CXX_COMPILER_LAUNCHER + - CMAKE_CUDA_COMPILER_LAUNCHER run_exports: - {{ pin_subpackage("librmm", max_pin="x.x") }}