Skip to content

Commit 06d76e3

Browse files
ramilbakhshyievketor
authored andcommitted
Append ROCm flag to compile definitions for Python instead of overwriting (facebookresearch#3742)
Summary: Pull Request resolved: facebookresearch#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 efb332f commit 06d76e3

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)