Skip to content

Commit 293f624

Browse files
committed
Another update
1 parent 7c0e3a5 commit 293f624

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

mlir/include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include "mlir/Conversion/GPUToROCDL/Runtimes.h"
1212
#include "mlir/Conversion/LLVMCommon/LoweringOptions.h"
13-
#include "mlir/Dialect/AMDGPU/Utils/Chipset.h"
1413
#include <memory>
1514

1615
namespace mlir {

mlir/include/mlir/Conversion/Passes.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,6 @@ def ConvertGpuOpsToROCDLOps : Pass<"convert-gpu-to-rocdl", "gpu::GPUModuleOp"> {
608608
clEnumValN(::mlir::gpu::amd::Runtime::HIP, "HIP", "HIP"),
609609
clEnumValN(::mlir::gpu::amd::Runtime::OpenCL, "OpenCL",
610610
"OpenCL"))}]>,
611-
Option<"subgroupSize", "subgroup-size", "unsigned",
612-
"0",
613-
"specify subgroup size for the kernel, if left empty, the default "
614-
"value will be decided by the target chipset.">,
615611
ListOption<"allowedDialects", "allowed-dialects", "std::string",
616612
"Run conversion patterns of only the specified dialects">,
617613
];

mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ static Value truncOrExtToLLVMType(ConversionPatternRewriter &rewriter,
9090
int64_t indexBitwidth = converter.getIndexTypeBitwidth();
9191
auto indexBitwidthType =
9292
IntegerType::get(rewriter.getContext(), converter.getIndexTypeBitwidth());
93-
// TODO: use <=> in C++20.
9493
if (indexBitwidth > intWidth) {
9594
return rewriter.create<LLVM::SExtOp>(loc, indexBitwidthType, value);
9695
}
@@ -281,7 +280,7 @@ struct GPUSubgroupIdOpToROCDL final
281280
rewriter.create<LLVM::AddOp>(loc, int32Type, workitemIdX,
282281
dimYxIdZPlusIdYTimesDimX, flags);
283282
Value subgroupSize = rewriter.create<ROCDL::WavefrontSizeOp>(
284-
loc, rewriter.getI32Type(), nullptr);
283+
loc, rewriter.getI32Type(), /*upper_bound = */ nullptr);
285284
Value waveIdOp = rewriter.create<LLVM::UDivOp>(
286285
loc, workitemIdXPlusDimYxIdZPlusIdYTimesDimX, subgroupSize);
287286
rewriter.replaceOp(op, {truncOrExtToLLVMType(rewriter, loc, waveIdOp,

0 commit comments

Comments
 (0)