Skip to content

Commit

Permalink
fix(sys): link to static EPs, fixes #306
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Oct 20, 2024
1 parent 28a127d commit 8988d15
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ort-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,17 @@ fn prepare_libort_dir() -> (PathBuf, bool) {
println!("cargo:rustc-link-lib=onnxruntime_providers_coreml");
}

// #[cfg(feature = "rocm")]
// println!("cargo:rustc-link-lib=onnxruntime_providers_rocm");
// link static EPs if present
// not sure if these are the right libs but they're optional links so...
optional_link_lib(&lib_dir, "onnxruntime_providers_acl");
optional_link_lib(&lib_dir, "onnxruntime_providers_armnn");
optional_link_lib(&lib_dir, "onnxruntime_providers_azure");
optional_link_lib(&lib_dir, "onnxruntime_providers_dml");
optional_link_lib(&lib_dir, "onnxruntime_providers_nnapi");
optional_link_lib(&lib_dir, "onnxruntime_providers_qnn");
optional_link_lib(&lib_dir, "onnxruntime_providers_rknpu");
optional_link_lib(&lib_dir, "onnxruntime_providers_tvm");
optional_link_lib(&lib_dir, "onnxruntime_providers_xnnpack");

needs_link = false;
break;
Expand Down

0 comments on commit 8988d15

Please sign in to comment.