Skip to content

Commit

Permalink
[BACKEND] Remove duplicate def for create_get_program_id (#1013)
Browse files Browse the repository at this point in the history
The same function is redefined in lines
[645-650](https://github.com/openai/triton/blob/master/python/src/triton.cc#L645-L650)
and
[1174-1179](https://github.com/openai/triton/blob/master/python/src/triton.cc#L1174-L1179),
compared these 2 definitions, looks like we should remove the code in
lines 645-650.

Co-authored-by: Keren Zhou <[email protected]>
  • Loading branch information
void-main and Jokeren authored Jan 18, 2023
1 parent 660f2e8 commit b2c522a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/src/triton.cc
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,6 @@ void init_triton_ir(py::module &&m) {
return self.create<mlir::triton::MakeRangeOp>(loc, retType, start,
end);
})
.def("create_get_program_id",
[](mlir::OpBuilder &self, int axis) -> mlir::Value {
auto loc = self.getUnknownLoc();
return self.create<mlir::triton::GetProgramIdOp>(
loc, self.getI32Type(), axis);
})

// Cast instructions
// Conversions for custom FP types (FP8)
Expand Down

0 comments on commit b2c522a

Please sign in to comment.