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