mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
only .cu file needs to be complied as device
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ if (LLAMA_HIPBLAS)
|
||||
add_compile_definitions(GGML_USE_HIPBLAS)
|
||||
add_library(ggml-hip OBJECT ggml-cuda.cu ggml-cuda.h)
|
||||
set_source_files_properties(ggml-cuda.cu PROPERTIES LANGUAGE CXX)
|
||||
target_link_libraries(ggml-hip PUBLIC hip::device)
|
||||
target_link_libraries(ggml-hip PRIVATE hip::device)
|
||||
|
||||
if (LLAMA_STATIC)
|
||||
message(FATAL_ERROR "Static linking not supported for HIP/ROCm")
|
||||
|
||||
Reference in New Issue
Block a user