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>)