File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments