@@ -321,7 +321,8 @@ fn check_kernel_ptx_and_report(
321321 Ok ( None ) => ( ) ,
322322 Ok ( Some ( binary) ) => {
323323 if ptx_lint_levels
324- . get ( & PtxLint :: DumpAssembly ) . is_some_and ( |level| * level > LintLevel :: Allow )
324+ . get ( & PtxLint :: DumpAssembly )
325+ . is_some_and ( |level| * level > LintLevel :: Allow )
325326 {
326327 const HEX : [ char ; 16 ] = [
327328 '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' ,
@@ -335,7 +336,8 @@ fn check_kernel_ptx_and_report(
335336 }
336337
337338 if ptx_lint_levels
338- . get ( & PtxLint :: DumpAssembly ) . is_some_and ( |level| * level > LintLevel :: Warn )
339+ . get ( & PtxLint :: DumpAssembly )
340+ . is_some_and ( |level| * level > LintLevel :: Warn )
339341 {
340342 emit_call_site_error ! (
341343 "{} compiled binary:\n {}\n \n {}" ,
@@ -457,22 +459,27 @@ fn check_kernel_ptx(
457459 let mut options = options. clone ( ) ;
458460
459461 if ptx_lint_levels
460- . get ( & PtxLint :: Verbose ) . is_some_and ( |level| * level > LintLevel :: Warn )
462+ . get ( & PtxLint :: Verbose )
463+ . is_some_and ( |level| * level > LintLevel :: Warn )
461464 {
462465 options. push ( c"--verbose" ) ;
463466 }
464467 if ptx_lint_levels
465- . get ( & PtxLint :: DoublePrecisionUse ) . is_some_and ( |level| * level > LintLevel :: Warn )
468+ . get ( & PtxLint :: DoublePrecisionUse )
469+ . is_some_and ( |level| * level > LintLevel :: Warn )
466470 {
467471 options. push ( c"--warn-on-double-precision-use" ) ;
468472 }
469473 if ptx_lint_levels
470- . get ( & PtxLint :: LocalMemoryUse ) . is_some_and ( |level| * level > LintLevel :: Warn )
474+ . get ( & PtxLint :: LocalMemoryUse )
475+ . is_some_and ( |level| * level > LintLevel :: Warn )
471476 {
472477 options. push ( c"--warn-on-local-memory-usage" ) ;
473478 }
474479 if ptx_lint_levels
475- . get ( & PtxLint :: RegisterSpills ) . is_some_and ( |level| * level > LintLevel :: Warn ) {
480+ . get ( & PtxLint :: RegisterSpills )
481+ . is_some_and ( |level| * level > LintLevel :: Warn )
482+ {
476483 options. push ( c"--warn-on-spills" ) ;
477484 }
478485 if ptx_lint_levels
@@ -498,21 +505,26 @@ fn check_kernel_ptx(
498505 } ;
499506
500507 if ptx_lint_levels
501- . get ( & PtxLint :: Verbose ) . is_some_and ( |level| * level > LintLevel :: Allow )
508+ . get ( & PtxLint :: Verbose )
509+ . is_some_and ( |level| * level > LintLevel :: Allow )
502510 {
503511 options. push ( c"--verbose" ) ;
504512 }
505513 if ptx_lint_levels
506- . get ( & PtxLint :: DoublePrecisionUse ) . is_some_and ( |level| * level > LintLevel :: Allow ) {
514+ . get ( & PtxLint :: DoublePrecisionUse )
515+ . is_some_and ( |level| * level > LintLevel :: Allow )
516+ {
507517 options. push ( c"--warn-on-double-precision-use" ) ;
508518 }
509519 if ptx_lint_levels
510- . get ( & PtxLint :: LocalMemoryUse ) . is_some_and ( |level| * level > LintLevel :: Allow )
520+ . get ( & PtxLint :: LocalMemoryUse )
521+ . is_some_and ( |level| * level > LintLevel :: Allow )
511522 {
512523 options. push ( c"--warn-on-local-memory-usage" ) ;
513524 }
514525 if ptx_lint_levels
515- . get ( & PtxLint :: RegisterSpills ) . is_some_and ( |level| * level > LintLevel :: Allow )
526+ . get ( & PtxLint :: RegisterSpills )
527+ . is_some_and ( |level| * level > LintLevel :: Allow )
516528 {
517529 options. push ( c"--warn-on-spills" ) ;
518530 }
0 commit comments