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 {
49
49
bool isCompatible (const NVVMCheckSMVersion &targetSM) const {
50
50
if (exactMatch)
51
51
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 ;
56
56
}
57
57
58
58
bool operator ==(const NVVMCheckSMVersion &other) const {
Original file line number Diff line number Diff line change @@ -1567,7 +1567,7 @@ LogicalResult NVVMTargetAttr::verifyTarget(Operation *gpuModule) {
1567
1567
if (!gpuModuleOp)
1568
1568
return emitError (gpuModule->getLoc (),
1569
1569
" NVVM target attribute must be attached to a GPU module" );
1570
-
1570
+
1571
1571
NVVMCheckSMVersion targetSMVersion (getChip ());
1572
1572
if (targetSMVersion.archVersion < 20 )
1573
1573
return emitError (gpuModule->getLoc (),
You can’t perform that action at this time.
0 commit comments