|
@@ -70,7 +70,9 @@ ggml_add_backend_library(ggml-hip
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
# TODO: do not use CUDA definitions for HIP
|
|
# TODO: do not use CUDA definitions for HIP
|
|
|
-target_compile_definitions(ggml PUBLIC GGML_USE_CUDA)
|
|
|
|
|
|
|
+if (NOT GGML_BACKEND_DL)
|
|
|
|
|
+ target_compile_definitions(ggml PUBLIC GGML_USE_CUDA)
|
|
|
|
|
+endif()
|
|
|
|
|
|
|
|
add_compile_definitions(GGML_USE_HIP)
|
|
add_compile_definitions(GGML_USE_HIP)
|
|
|
|
|
|