diff --git a/third_party/intel/lib/TritonIntelGPUToLLVM/PipelineManager.h b/third_party/intel/lib/TritonIntelGPUToLLVM/PipelineManager.h index 7bbcf0d60a..2cab9b4fa0 100644 --- a/third_party/intel/lib/TritonIntelGPUToLLVM/PipelineManager.h +++ b/third_party/intel/lib/TritonIntelGPUToLLVM/PipelineManager.h @@ -116,9 +116,8 @@ struct FuncOpConversion : public ConvertOpToLLVMPattern { newFuncOp.setLinkage(LLVM::Linkage::External); } - newFuncOp->setAttr( - TritonGEN::TritonGENDialect::getMaxWorkGroupSizeAttrName(), - rewriter.getDenseI32ArrayAttr({threadsPerWarp * numWarps, 1, 1})); + newFuncOp.setReqdWorkGroupSize( + ArrayRef{threadsPerWarp * numWarps, 1, 1}); newFuncOp.setIntelReqdSubGroupSize(threadsPerWarp); if (!LLVM::isKernel(funcOp)) {