Merge pull request #221 from jarjee/fix_correct-hipblas-build

fix: Correct broken hipblas build
This commit is contained in:
Niko 2025-06-07 23:24:23 -07:00 committed by GitHub
commit 83428a939a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,7 @@ fn main() {
}
if cfg!(feature = "hipblas") {
config.define("GGML_HIPBLAS", "ON");
config.define("GGML_HIP", "ON");
config.define("CMAKE_C_COMPILER", "hipcc");
config.define("CMAKE_CXX_COMPILER", "hipcc");
println!("cargo:rerun-if-env-changed=AMDGPU_TARGETS");
@ -274,6 +274,10 @@ fn main() {
println!("cargo:rustc-link-lib=static=ggml-vulkan");
}
if cfg!(feature = "hipblas") {
println!("cargo:rustc-link-lib=static=ggml-hip");
}
if cfg!(feature = "metal") {
println!("cargo:rustc-link-lib=static=ggml-metal");
}