File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
include/mlir/Dialect/LLVMIR Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ struct NVVMCheckSMVersion {
4949 bool isCompatible (const NVVMCheckSMVersion &targetSM) const {
5050 if (exactMatch)
5151 return (*this ) == targetSM;
52-
53- return archAccelerated ?
54- archVersion <= targetSM.archVersion && targetSM.archAccelerated :
55- archVersion <= targetSM.archVersion ;
52+
53+ return archAccelerated
54+ ? archVersion <= targetSM.archVersion && targetSM.archAccelerated
55+ : archVersion <= targetSM.archVersion ;
5656 }
5757
5858 bool operator ==(const NVVMCheckSMVersion &other) const {
Original file line number Diff line number Diff line change @@ -1741,7 +1741,7 @@ LogicalResult NVVMTargetAttr::verifyTarget(Operation *gpuModule) {
17411741 if (!gpuModuleOp)
17421742 return emitError (gpuModule->getLoc (),
17431743 " NVVM target attribute must be attached to a GPU module" );
1744-
1744+
17451745 NVVMCheckSMVersion targetSMVersion (getChip ());
17461746 if (targetSMVersion.archVersion < 20 )
17471747 return emitError (gpuModule->getLoc (),
You can’t perform that action at this time.
0 commit comments