From 6fd5a88ec3bcb78dab2788cc03c280051dd67be6 Mon Sep 17 00:00:00 2001 From: Vladimir Perepechin Date: Tue, 14 May 2024 09:22:23 +1000 Subject: [PATCH] core: fix building rocm version with modern ROCm Even in currently used version (5.7.1) all lib symlinks are available in /opt/rocm-xxx/lib/. Sin ROCm 6.0.0 there is no separate folders with dev libs for each lib. --- crates/llama-cpp-bindings/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/llama-cpp-bindings/build.rs b/crates/llama-cpp-bindings/build.rs index 8c0da8a72326..298b8aa02870 100644 --- a/crates/llama-cpp-bindings/build.rs +++ b/crates/llama-cpp-bindings/build.rs @@ -85,6 +85,7 @@ fn build_llama_cpp() { println!("cargo:rustc-link-search=native={}/hip/lib", rocm_root); println!("cargo:rustc-link-search=native={}/rocblas/lib", rocm_root); println!("cargo:rustc-link-search=native={}/hipblas/lib", rocm_root); + println!("cargo:rustc-link-search=native={}/lib", rocm_root); println!("cargo:rustc-link-lib=amdhip64"); println!("cargo:rustc-link-lib=rocblas"); println!("cargo:rustc-link-lib=hipblas");