We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3703a1e commit b8b3c18Copy full SHA for b8b3c18
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
@@ -387,8 +387,11 @@ LogicalResult GPUModuleConversion::matchAndRewrite(
387
spvModule->setAttr(spirv::getTargetEnvAttrName(), attr);
388
if (ArrayAttr targets = moduleOp.getTargetsAttr()) {
389
for (Attribute targetAttr : targets)
390
- if (auto spirvTargetEnvAttr = dyn_cast<spirv::TargetEnvAttr>(targetAttr))
+ if (auto spirvTargetEnvAttr =
391
+ dyn_cast<spirv::TargetEnvAttr>(targetAttr)) {
392
spvModule->setAttr(spirv::getTargetEnvAttrName(), spirvTargetEnvAttr);
393
+ break;
394
+ }
395
}
396
397
rewriter.eraseOp(moduleOp);
0 commit comments