Skip to content

Commit

Permalink
[Codegen][CUDA] Remove handling for block ID ranges (#20009)
Browse files Browse the repository at this point in the history
We have this old LLVM plugin running around for setting the maximum
value of block ID intrinsics when going to CUDA. This functionality has
been upstream since LLVM PR #107659 , and we've been setting the
relevant attributes in our compile pipeline.
  • Loading branch information
krzysz00 authored Feb 18, 2025
1 parent 33a770e commit fe0b26d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 147 deletions.
4 changes: 0 additions & 4 deletions compiler/plugins/target/CUDA/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ iree_compiler_cc_library(
name = "CUDA",
srcs = [
"CUDATarget.cpp",
"SetBlockIdsRangePass.cpp",
],
hdrs = [
"SetBlockIdsRangePass.h",
],
deps = [
"//compiler/src/iree/compiler/Codegen",
Expand Down
3 changes: 0 additions & 3 deletions compiler/plugins/target/CUDA/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ iree_compiler_register_plugin(
iree_cc_library(
NAME
CUDA
HDRS
"SetBlockIdsRangePass.h"
SRCS
"CUDATarget.cpp"
"SetBlockIdsRangePass.cpp"
DEPS
LLVMAnalysis
LLVMBitReader
Expand Down
2 changes: 0 additions & 2 deletions compiler/plugins/target/CUDA/CUDATarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "./SetBlockIdsRangePass.h"
#include "iree/compiler/Codegen/Common/Passes.h"
#include "iree/compiler/Codegen/Dialect/Codegen/IR/IREECodegenDialect.h"
#include "iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.h"
Expand Down Expand Up @@ -369,7 +368,6 @@ static void optimizeModule(llvm::Module &module,

mpm.addPass(llvm::VerifierPass());
llvm::FunctionPassManager fpm;
fpm.addPass(llvm::SetBlockIdsRangePass(maxWorkgroupSize));
mpm.addPass(createModuleToFunctionPassAdaptor(std::move(fpm)));
mpm.addPass(pb.buildPerModuleDefaultPipeline(ol));
mpm.addPass(llvm::VerifierPass());
Expand Down
110 changes: 0 additions & 110 deletions compiler/plugins/target/CUDA/SetBlockIdsRangePass.cpp

This file was deleted.

28 changes: 0 additions & 28 deletions compiler/plugins/target/CUDA/SetBlockIdsRangePass.h

This file was deleted.

0 comments on commit fe0b26d

Please sign in to comment.