Skip to content

Commit b8127c7

Browse files
authored
Fix: add Debian's installation to default paths (#72)
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.
1 parent 2de8180 commit b8127c7

File tree

1 file changed

+1
-0
lines changed
  • crates/find_cuda_helper/src

1 file changed

+1
-0
lines changed

crates/find_cuda_helper/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pub fn find_cuda_lib_dirs() -> Vec<PathBuf> {
130130
for e in glob::glob("/usr/local/cuda-*").unwrap().flatten() {
131131
candidates.push(e)
132132
}
133+
candidates.push(PathBuf::from("/usr/lib/cuda"));
133134

134135
let mut valid_paths = vec![];
135136
for base in &candidates {

0 commit comments

Comments
 (0)