Skip to content

Commit c6502d2

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

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

crates/cust_raw/build/cuda_sdk.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,36 @@ impl CudaSdk {
4545
// Retrieve the NVVM related paths.
4646
let nvvm_include_paths = Self::find_nvvm_include_dirs(cuda_root.as_path())?;
4747
let nvvm_library_paths = Self::find_nvvm_library_dirs(cuda_root.as_path())?;
48+
49+
use std::fs;
50+
51+
eprintln!("1---");
52+
let path = &cuda_root;
53+
if let Ok(paths) = fs::read_dir(path) {
54+
for path in paths {
55+
eprintln!("Name: {}", path.unwrap().path().display())
56+
}
57+
}
58+
eprintln!("1---");
59+
60+
eprintln!("2---");
61+
let path = cuda_root.join("nvvm");
62+
if let Ok(paths) = fs::read_dir(path) {
63+
for path in paths {
64+
eprintln!("Name: {}", path.unwrap().path().display())
65+
}
66+
}
67+
eprintln!("2---");
68+
69+
eprintln!("3---");
70+
let path = cuda_root.join("nvvm").join("libdevice");
71+
if let Ok(paths) = fs::read_dir(path) {
72+
for path in paths {
73+
eprintln!("Name: {}", path.unwrap().path().display())
74+
}
75+
}
76+
eprintln!("3---");
77+
4878
let libdevice_bitcode_path = cuda_root
4979
.join("nvvm")
5080
.join("libdevice")

0 commit comments

Comments
 (0)