File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
include/mlir/Dialect/LLVMIR Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ struct NVVMCheckSMVersion {
54
54
} else {
55
55
return targetSM.smVersionList [0 ] >= smVersionList[0 ];
56
56
}
57
-
57
+
58
58
return false ;
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -1749,11 +1749,10 @@ LogicalResult NVVMTargetAttr::verifyTarget(Operation *gpuModule) {
1749
1749
return emitError (gpuModule->getLoc (),
1750
1750
" Minimum NVVM target SM version is sm_20" );
1751
1751
}
1752
-
1752
+
1753
1753
gpuModuleOp->walk ([&](Operation *op) {
1754
1754
if (auto reqOp = llvm::dyn_cast<NVVM::RequiresSMInterface>(op)) {
1755
- const NVVMCheckSMVersion requirement =
1756
- reqOp.getRequiredMinSMVersion ();
1755
+ const NVVMCheckSMVersion requirement = reqOp.getRequiredMinSMVersion ();
1757
1756
if (!requirement.isCompatibleWith (targetSMVersion)) {
1758
1757
op->emitOpError () << " is not supported on " << getChip ();
1759
1758
return WalkResult::interrupt ();
You can’t perform that action at this time.
0 commit comments