Skip to content

Commit

Permalink
fix(sys): stop preferring dynamic linking when using cuda or `tenso…
Browse files Browse the repository at this point in the history
…rrt`
  • Loading branch information
decahedron1 committed Mar 9, 2025
1 parent 93b5629 commit 3bb69a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ort-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fn static_link_prerequisites(using_pyke_libs: bool) {
fn prefer_dynamic_linking() -> bool {
match env::var(ORT_ENV_PREFER_DYNAMIC_LINK) {
Ok(val) => val == "1" || val.to_lowercase() == "true",
Err(_) => cfg!(feature = "cuda") || cfg!(feature = "tensorrt")
Err(_) => false
}
}

Expand Down

0 comments on commit 3bb69a0

Please sign in to comment.