@@ -321,7 +321,8 @@ fn check_kernel_ptx_and_report(
321
321
Ok ( None ) => ( ) ,
322
322
Ok ( Some ( binary) ) => {
323
323
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 )
325
326
{
326
327
const HEX : [ char ; 16 ] = [
327
328
'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(
335
336
}
336
337
337
338
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 )
339
341
{
340
342
emit_call_site_error ! (
341
343
"{} compiled binary:\n {}\n \n {}" ,
@@ -457,22 +459,27 @@ fn check_kernel_ptx(
457
459
let mut options = options. clone ( ) ;
458
460
459
461
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 )
461
464
{
462
465
options. push ( c"--verbose" ) ;
463
466
}
464
467
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 )
466
470
{
467
471
options. push ( c"--warn-on-double-precision-use" ) ;
468
472
}
469
473
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 )
471
476
{
472
477
options. push ( c"--warn-on-local-memory-usage" ) ;
473
478
}
474
479
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
+ {
476
483
options. push ( c"--warn-on-spills" ) ;
477
484
}
478
485
if ptx_lint_levels
@@ -498,21 +505,26 @@ fn check_kernel_ptx(
498
505
} ;
499
506
500
507
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 )
502
510
{
503
511
options. push ( c"--verbose" ) ;
504
512
}
505
513
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
+ {
507
517
options. push ( c"--warn-on-double-precision-use" ) ;
508
518
}
509
519
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 )
511
522
{
512
523
options. push ( c"--warn-on-local-memory-usage" ) ;
513
524
}
514
525
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 )
516
528
{
517
529
options. push ( c"--warn-on-spills" ) ;
518
530
}
0 commit comments