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
54134302
Commit
54134302
authored
Jan 09, 2026
by
laibao
Browse files
[Adaption]适配ollama0.13.5 for DCU
parent
33ee7168
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ml/backend/ggml/ggml/src/ggml-cuda/vendors/hip.h
ml/backend/ggml/ggml/src/ggml-cuda/vendors/hip.h
+2
-2
ml/backend/ggml/ggml/src/ggml-hip/CMakeLists.txt
ml/backend/ggml/ggml/src/ggml-hip/CMakeLists.txt
+3
-3
No files found.
ml/backend/ggml/ggml/src/ggml-cuda/vendors/hip.h
View file @
54134302
...
...
@@ -50,7 +50,7 @@
#define cudaDeviceCanAccessPeer hipDeviceCanAccessPeer
#define cudaDeviceDisablePeerAccess hipDeviceDisablePeerAccess
#define cudaDeviceEnablePeerAccess hipDeviceEnablePeerAccess
#define cudaDeviceProp hipDeviceProp_t
#define cudaDeviceProp hipDeviceProp_t
_v2
#define cudaDeviceReset hipDeviceReset
#define cudaDeviceSynchronize hipDeviceSynchronize
#define cudaDriverGetVersion hipDriverGetVersion
...
...
@@ -67,7 +67,7 @@
#define cudaFreeHost hipHostFree
#define cudaGetDevice hipGetDevice
#define cudaGetDeviceCount hipGetDeviceCount
#define cudaGetDeviceProperties hipGetDeviceProperties
#define cudaGetDeviceProperties hipGetDeviceProperties
_v2
#define cudaGetErrorString hipGetErrorString
#define cudaGetLastError hipGetLastError
#define cudaHostRegister hipHostRegister
...
...
ml/backend/ggml/ggml/src/ggml-hip/CMakeLists.txt
View file @
54134302
...
...
@@ -43,9 +43,9 @@ find_package(hip REQUIRED)
find_package
(
hipblas REQUIRED
)
find_package
(
rocblas REQUIRED
)
if
(
${
hip_VERSION
}
VERSION_LESS 6.1
)
message
(
FATAL_ERROR
"At least ROCM/HIP V6.1 is required"
)
endif
()
#
if (${hip_VERSION} VERSION_LESS 6.1)
#
message(FATAL_ERROR "At least ROCM/HIP V6.1 is required")
#
endif()
message
(
STATUS
"HIP and hipBLAS found"
)
...
...
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