File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -367,36 +367,6 @@ impl CudaBuilder {
367367 let path = invoke_rustc ( & self ) ?;
368368 println ! ( "cargo:warning=Build completed successfully, PTX file generated at: {}" , path. display( ) ) ;
369369
370- // run ptxas on it to validate
371- let ptxas_output = Command :: new ( "ptxas" )
372- . arg ( "-v" )
373- . arg ( format ! ( "-arch={}" , self . arch. to_string( ) ) )
374- . arg ( & path)
375- . arg ( "-o" )
376- . arg ( "/tmp/temp.cubin" )
377- . output ( )
378- . expect ( "Failed to run ptxas" ) ;
379- println ! ( "cargo:warning=PTXAS output: {:?}" , ptxas_output) ;
380- if !ptxas_output. status . success ( ) {
381- match ptxas_output. status . code ( ) {
382- Some ( code) => panic ! ( "ptxas failed with exit code: {code}" ) ,
383- None => {
384- // Process was terminated by a signal
385- #[ cfg( unix) ]
386- {
387- use std:: os:: unix:: process:: ExitStatusExt ;
388- if let Some ( signal) = ptxas_output. status . signal ( ) {
389- panic ! ( "ptxas was killed by signal: {signal}" ) ;
390- } else {
391- panic ! ( "ptxas failed with unknown signal" ) ;
392- }
393- }
394- #[ cfg( not( unix) ) ]
395- panic ! ( "ptxas failed with signal" ) ;
396- } ,
397- }
398- }
399-
400370 if let Some ( copy_path) = & self . ptx_file_copy_path {
401371 println ! ( "cargo:warning=Copying PTX file from {} to {}" , path. display( ) , copy_path. display( ) ) ;
402372 std:: fs:: copy ( & path, copy_path) . map_err ( |e| {
You can’t perform that action at this time.
0 commit comments