Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e75c6126
Unverified
Commit
e75c6126
authored
Mar 01, 2025
by
Jeffrey Morgan
Committed by
GitHub
Mar 01, 2025
Browse files
build: set GGML_CUDA_NO_VMM for ggml-hip target (#9449)
parent
cda6f5c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
e75c6126
...
@@ -106,9 +106,11 @@ if(CMAKE_HIP_COMPILER)
...
@@ -106,9 +106,11 @@ if(CMAKE_HIP_COMPILER)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/ml/backend/ggml/ggml/src/ggml-hip
)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/ml/backend/ggml/ggml/src/ggml-hip
)
if
(
WIN32
)
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
()
endif
()
target_compile_definitions
(
ggml-hip PRIVATE GGML_CUDA_NO_VMM
)
set
(
OLLAMA_HIP_INSTALL_DIR
${
OLLAMA_INSTALL_DIR
}
/rocm
)
set
(
OLLAMA_HIP_INSTALL_DIR
${
OLLAMA_INSTALL_DIR
}
/rocm
)
install
(
TARGETS ggml-hip
install
(
TARGETS ggml-hip
RUNTIME_DEPENDENCIES
RUNTIME_DEPENDENCIES
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment