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 {
5454 } else {
5555 return targetSM.smVersionList [0 ] >= smVersionList[0 ];
5656 }
57-
57+
5858 return false ;
5959 }
6060
Original file line number Diff line number Diff line change @@ -1749,11 +1749,10 @@ LogicalResult NVVMTargetAttr::verifyTarget(Operation *gpuModule) {
17491749 return emitError (gpuModule->getLoc (),
17501750 " Minimum NVVM target SM version is sm_20" );
17511751 }
1752-
1752+
17531753 gpuModuleOp->walk ([&](Operation *op) {
17541754 if (auto reqOp = llvm::dyn_cast<NVVM::RequiresSMInterface>(op)) {
1755- const NVVMCheckSMVersion requirement =
1756- reqOp.getRequiredMinSMVersion ();
1755+ const NVVMCheckSMVersion requirement = reqOp.getRequiredMinSMVersion ();
17571756 if (!requirement.isCompatibleWith (targetSMVersion)) {
17581757 op->emitOpError () << " is not supported on " << getChip ();
17591758 return WalkResult::interrupt ();
You can’t perform that action at this time.
0 commit comments