Skip to content

Commit

Permalink
only .cu file needs to be complied as device
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyEcho committed Apr 27, 2023
1 parent ef51e9e commit ecc0565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ecc0565

Please sign in to comment.