diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 63fe3ded7a..29af068f06 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -325,6 +325,9 @@ set(FAISS_GPU_ARCHS "${FAISS_GPU_ARCHS} ${ptx}") set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcudafe --diag_suppress=unrecognized_gcc_pragma") +# make sure we produce smallest binary size +string(APPEND CMAKE_CUDA_FLAGS " -Xfatbin=-compress-all") + ############################################################################## # - dependencies -------------------------------------------------------------