build: add -DGGML_CUDA_NO_PEER_COPY=ON for rocm builds on windows (#9060)

This commit is contained in:
Jeffrey Morgan 2025-02-13 00:23:17 -08:00 committed by GitHub
parent 82658c3eec
commit a4f69a0191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,10 @@ if(CMAKE_HIP_COMPILER)
if(AMDGPU_TARGETS)
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)
endif()
set(OLLAMA_HIP_INSTALL_DIR ${OLLAMA_INSTALL_DIR}/rocm)
install(TARGETS ggml-hip
RUNTIME_DEPENDENCIES