Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 83428a9

Browse files
authored
Merge pull request #221 from jarjee/fix_correct-hipblas-build
fix: Correct broken hipblas build
2 parents 35adcfd + 76facb3 commit 83428a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sys/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn main() {
180180
}
181181

182182
if cfg!(feature = "hipblas") {
183-
config.define("GGML_HIPBLAS", "ON");
183+
config.define("GGML_HIP", "ON");
184184
config.define("CMAKE_C_COMPILER", "hipcc");
185185
config.define("CMAKE_CXX_COMPILER", "hipcc");
186186
println!("cargo:rerun-if-env-changed=AMDGPU_TARGETS");
@@ -274,6 +274,10 @@ fn main() {
274274
println!("cargo:rustc-link-lib=static=ggml-vulkan");
275275
}
276276

277+
if cfg!(feature = "hipblas") {
278+
println!("cargo:rustc-link-lib=static=ggml-hip");
279+
}
280+
277281
if cfg!(feature = "metal") {
278282
println!("cargo:rustc-link-lib=static=ggml-metal");
279283
}

0 commit comments

Comments
 (0)