Skip to content

Commit

Permalink
Fix: add Debian's installation to default paths (#72)
Browse files Browse the repository at this point in the history
When you install `nvidia-cuda-toolkit` on Debian, it installs the
CUDA libraries into `/usr/lib/cuda`. Add this path to the default
search paths.
  • Loading branch information
vmx authored May 17, 2022
1 parent 2de8180 commit b8127c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/find_cuda_helper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pub fn find_cuda_lib_dirs() -> Vec<PathBuf> {
for e in glob::glob("/usr/local/cuda-*").unwrap().flatten() {
candidates.push(e)
}
candidates.push(PathBuf::from("/usr/lib/cuda"));

let mut valid_paths = vec![];
for base in &candidates {
Expand Down

0 comments on commit b8127c7

Please sign in to comment.