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

Commit 76facb3

Browse files
committed
fix: Correct broken hipblas build
1 parent ddbc796 commit 76facb3

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
@@ -178,7 +178,7 @@ fn main() {
178178
}
179179

180180
if cfg!(feature = "hipblas") {
181-
config.define("GGML_HIPBLAS", "ON");
181+
config.define("GGML_HIP", "ON");
182182
config.define("CMAKE_C_COMPILER", "hipcc");
183183
config.define("CMAKE_CXX_COMPILER", "hipcc");
184184
println!("cargo:rerun-if-env-changed=AMDGPU_TARGETS");
@@ -272,6 +272,10 @@ fn main() {
272272
println!("cargo:rustc-link-lib=static=ggml-vulkan");
273273
}
274274

275+
if cfg!(feature = "hipblas") {
276+
println!("cargo:rustc-link-lib=static=ggml-hip");
277+
}
278+
275279
if cfg!(feature = "metal") {
276280
println!("cargo:rustc-link-lib=static=ggml-metal");
277281
}

0 commit comments

Comments
 (0)