mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-05-04 16:14:34 +02:00
ggml : do not define GGML_USE_CUDA when building with GGML_BACKEND_DL (llama/11211)
Build fails when using HIP and GGML_BACKEND_DL: ``` /usr/bin/ld: ../ggml/src/libggml.so: undefined reference to `ggml_backend_cuda_reg' collect2: error: ld returned 1 exit status ``` This patch fixes this.
This commit is contained in:
parent
cdb8aa2f2e
commit
a4b00bcaaf
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user