Skip to content

Commit 11c15af

Browse files
Append ROCm flag to compile definitions for Python instead of overwriting (#3742)
Summary: Pull Request resolved: #3742 Before this change, the CMake line was setting (instead of appending to) compile definitions for Python code which replace the GPU wrappers flag and resulting in Python library compiling with no GPU code which failed ROCm tests. Reviewed By: junjieqi Differential Revision: D61007640 fbshipit-source-id: 174aeb0a4abe0607629ddf57c882d19ea2d6c6bf
1 parent 13371c7 commit 11c15af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/python/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ macro(configure_swigfaiss source)
3939
COMPILE_DEFINITIONS GPU_WRAPPER
4040
)
4141
if (FAISS_ENABLE_ROCM)
42-
set_source_files_properties(${source} PROPERTIES
42+
set_property(SOURCE ${source} APPEND PROPERTY
4343
COMPILE_DEFINITIONS FAISS_ENABLE_ROCM
4444
)
4545
endif()

0 commit comments

Comments
 (0)