Skip to content

Commit c132e2d

Browse files
committed
XXX: print libdevice/ files
1 parent 60eb743 commit c132e2d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

crates/cust_raw/build/cuda_sdk.rs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,35 @@ impl CudaSdk {
5050
.join("libdevice")
5151
.join("libdevice.10.bc");
5252
if !libdevice_bitcode_path.is_file() {
53+
use std::fs;
54+
55+
eprintln!("1---");
56+
let path = &cuda_root;
57+
if let Ok(paths) = fs::read_dir(path) {
58+
for path in paths {
59+
eprintln!("Name: {}", path.unwrap().path().display())
60+
}
61+
}
62+
eprintln!("1---");
63+
64+
eprintln!("2---");
65+
let path = cuda_root.join("nvvm");
66+
if let Ok(paths) = fs::read_dir(path) {
67+
for path in paths {
68+
eprintln!("Name: {}", path.unwrap().path().display())
69+
}
70+
}
71+
eprintln!("2---");
72+
73+
eprintln!("3---");
74+
let path = cuda_root.join("nvvm").join("libdevice");
75+
if let Ok(paths) = fs::read_dir(path) {
76+
for path in paths {
77+
eprintln!("Name: {}", path.unwrap().path().display())
78+
}
79+
}
80+
eprintln!("3---");
81+
5382
return Err(format!(
5483
"libdevice bitcode file not found: {}.",
5584
libdevice_bitcode_path.display()

0 commit comments

Comments
 (0)