Skip to content

Commit 1343f09

Browse files
[Nvidia][TritonGPU] Add phases to RemoveLayoutConversions
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 41b230b commit 1343f09

2 files changed

Lines changed: 2800 additions & 65 deletions

File tree

CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@ endif()
3535
if(NOT FLAGTREE_BACKEND)
3636
add_definitions(-D__NVIDIA__)
3737
add_definitions(-D__AMD__)
38+
option(TRITON_RLC_ENABLE_COST_BASED_RESOLUTION
39+
"RLC: cost-based layout conflict resolution" ON)
40+
option(TRITON_RLC_ENABLE_BACKWARD_PROPAGATION
41+
"RLC: backward layout propagation from writeback converts" ON)
42+
option(TRITON_RLC_ENABLE_SMALL_COMPONENT_SOLVING
43+
"RLC: small closed-component solving" ON)
44+
option(TRITON_RLC_ENABLE_STORE_LAYOUT_REMATERIALIZATION
45+
"RLC: store-layout rematerialization for MMA writebacks" ON)
46+
if(TRITON_RLC_ENABLE_COST_BASED_RESOLUTION)
47+
add_definitions(-DTRITON_RLC_ENABLE_COST_BASED_RESOLUTION)
48+
endif()
49+
if(TRITON_RLC_ENABLE_BACKWARD_PROPAGATION)
50+
add_definitions(-DTRITON_RLC_ENABLE_BACKWARD_PROPAGATION)
51+
endif()
52+
if(TRITON_RLC_ENABLE_SMALL_COMPONENT_SOLVING)
53+
add_definitions(-DTRITON_RLC_ENABLE_SMALL_COMPONENT_SOLVING)
54+
endif()
55+
if(TRITON_RLC_ENABLE_STORE_LAYOUT_REMATERIALIZATION)
56+
add_definitions(-DTRITON_RLC_ENABLE_STORE_LAYOUT_REMATERIALIZATION)
57+
endif()
3858
elseif(FLAGTREE_BACKEND STREQUAL "iluvatar")
3959
add_definitions(-D__ILUVATAR__)
4060
set(FLAGTREE_TLE OFF)

0 commit comments

Comments
 (0)