File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
crates/find_cuda_helper/src Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 45
45
- name : Add rustup components
46
46
run : rustup component add rustfmt clippy
47
47
48
- - name : Download OptiX Headers
49
- run : |
50
- chmod +x "${GITHUB_WORKSPACE}/scripts/download_ci_optix.bash"
51
- ${GITHUB_WORKSPACE}/scripts/download_ci_optix.bash
52
-
53
48
- name : Install LLVM 7
54
49
if : contains(matrix.os, 'ubuntu')
55
50
run : |
Original file line number Diff line number Diff line change @@ -127,10 +127,8 @@ pub fn find_cuda_lib_dirs() -> Vec<PathBuf> {
127
127
let mut candidates = read_env ( ) ;
128
128
candidates. push ( PathBuf :: from ( "/opt/cuda" ) ) ;
129
129
candidates. push ( PathBuf :: from ( "/usr/local/cuda" ) ) ;
130
- for e in glob:: glob ( "/usr/local/cuda-*" ) . unwrap ( ) {
131
- if let Ok ( path) = e {
132
- candidates. push ( path)
133
- }
130
+ for e in glob:: glob ( "/usr/local/cuda-*" ) . unwrap ( ) . flatten ( ) {
131
+ candidates. push ( e)
134
132
}
135
133
136
134
let mut valid_paths = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments