Skip to content

Commit

Permalink
Merge commit '2abfaec220d61a5a9a8c2a211282ec57f7b2ce37'
Browse files Browse the repository at this point in the history
  • Loading branch information
whitneywhtsang committed Aug 20, 2024
2 parents ce78135 + 2abfaec commit 013d9ef
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 192 deletions.
6 changes: 6 additions & 0 deletions include/triton/Dialect/TritonGPU/IR/TritonGPUAttrDefs.td
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ For the Threads Per Warp and Values Per Thread level, the linear id distribution
InterfaceMethod<"Gets the number of contiguous elements per thread.",
"SmallVector<unsigned>",
"getContigPerThread">,
InterfaceMethod<"Convert to LinearLayout.",
"std::optional<LinearLayout>",
"toLinearLayout",
(ins "ArrayRef<int64_t>":$shape)>
];
}

Expand Down Expand Up @@ -576,6 +580,8 @@ L(T) = [ {0,8} , {1,9} , {2,10}, {3,11}, {0,8} , {1, 9} , {2, 10}, {3, 11},

SmallVector<unsigned> getSizePerThread() const;
SmallVector<unsigned> getShapePerCTATile(ArrayRef<int64_t> tensorShape = ArrayRef<int64_t>()) const;

std::optional<LinearLayout> toLinearLayout(ArrayRef<int64_t> shape) const;
}];
}

Expand Down
2 changes: 1 addition & 1 deletion include/triton/Dialect/TritonGPU/IR/TritonGPUInterfaces.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef TRITON_GPU_DIALECT_INTERFACES_H
#define TRITON_GPU_DIALECT_INTERFACES_H

#include "triton/Dialect/TritonGPU/IR/LinearLayoutConversions.h"
#include "triton/Dialect/TritonGPU/IR/TritonGPUAttrInterfaces.h.inc"

#endif // TRITON_GPU_DIALECT_INTERFACES_H
Loading

0 comments on commit 013d9ef

Please sign in to comment.