mirror of
https://github.com/ollama/ollama.git
synced 2025-04-03 09:29:49 +02:00
build: add -DGGML_CUDA_NO_PEER_COPY=ON for rocm builds on windows (#9060)
This commit is contained in:
parent
82658c3eec
commit
a4f69a0191
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user