From 52da71c7f31c89b8e6eaaacccf50876c248fe4bc Mon Sep 17 00:00:00 2001 From: Dillon Cullinan Date: Thu, 8 Apr 2021 14:12:55 -0400 Subject: [PATCH] ENH Reduce cuspatial library size (#373) Decrease library size by using fatbin compression. cuDF PR for context: https://github.com/rapidsai/cudf/pull/7583 Authors: - Dillon Cullinan (https://github.com/dillon-cullinan) Approvers: - Paul Taylor (https://github.com/trxcllnt) - Keith Kraus (https://github.com/kkraus14) URL: https://github.com/rapidsai/cuspatial/pull/373 --- cpp/cmake/Modules/ConfigureCUDA.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/cmake/Modules/ConfigureCUDA.cmake b/cpp/cmake/Modules/ConfigureCUDA.cmake index e104eae78..1496469cd 100644 --- a/cpp/cmake/Modules/ConfigureCUDA.cmake +++ b/cpp/cmake/Modules/ConfigureCUDA.cmake @@ -41,6 +41,9 @@ list(APPEND CUSPATIAL_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr list(APPEND CUSPATIAL_CUDA_FLAGS -Werror=cross-execution-space-call) list(APPEND CUSPATIAL_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations) +# Produce smallest binary size +list(APPEND CUSPATIAL_CUDA_FLAGS -Xfatbin=-compress-all) + if(DISABLE_DEPRECATION_WARNING) list(APPEND CUSPATIAL_CXX_FLAGS -Wno-deprecated-declarations) list(APPEND CUSPATIAL_CUDA_FLAGS -Xcompiler=-Wno-deprecated-declarations)