build: set GGML_CUDA_NO_VMM for ggml-hip target (#9449)

This commit is contained in:
Jeffrey Morgan 2025-03-01 14:02:19 -08:00 committed by GitHub
parent cda6f5c66c
commit e75c6126e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,9 +106,11 @@ if(CMAKE_HIP_COMPILER)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ml/backend/ggml/ggml/src/ggml-hip)
if (WIN32)
target_compile_definitions(ggml-hip PRIVATE GGML_CUDA_NO_PEER_COPY=1)
target_compile_definitions(ggml-hip PRIVATE GGML_CUDA_NO_PEER_COPY)
endif()
target_compile_definitions(ggml-hip PRIVATE GGML_CUDA_NO_VMM)
set(OLLAMA_HIP_INSTALL_DIR ${OLLAMA_INSTALL_DIR}/rocm)
install(TARGETS ggml-hip
RUNTIME_DEPENDENCIES