Skip to content

Commit ecc0565

Browse files
committed
only .cu file needs to be complied as device
1 parent ef51e9e commit ecc0565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ if (LLAMA_HIPBLAS)
187187
add_compile_definitions(GGML_USE_HIPBLAS)
188188
add_library(ggml-hip OBJECT ggml-cuda.cu ggml-cuda.h)
189189
set_source_files_properties(ggml-cuda.cu PROPERTIES LANGUAGE CXX)
190-
target_link_libraries(ggml-hip PUBLIC hip::device)
190+
target_link_libraries(ggml-hip PRIVATE hip::device)
191191

192192
if (LLAMA_STATIC)
193193
message(FATAL_ERROR "Static linking not supported for HIP/ROCm")

0 commit comments

Comments
 (0)