From 677c2875b77be615dea28ab2e507a0e53bfb4834 Mon Sep 17 00:00:00 2001 From: ptaylor Date: Tue, 26 Oct 2021 22:15:24 -0500 Subject: [PATCH] compress CUDA device code --- faiss/gpu/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/faiss/gpu/CMakeLists.txt b/faiss/gpu/CMakeLists.txt index 232590b1ef..17354cb2fc 100644 --- a/faiss/gpu/CMakeLists.txt +++ b/faiss/gpu/CMakeLists.txt @@ -178,3 +178,5 @@ endforeach() find_package(CUDAToolkit REQUIRED) target_link_libraries(faiss PRIVATE CUDA::cudart CUDA::cublas) target_link_libraries(faiss_avx2 PRIVATE CUDA::cudart CUDA::cublas) +target_compile_options(faiss PRIVATE $<$:-Xfatbin=-compress-all>) +target_compile_options(faiss_avx2 PRIVATE $<$:-Xfatbin=-compress-all>)