Skip to content

Commit a031796

Browse files
author
Baizhou Zhang
authored
[CINN] Remove Old Group Cluster Method (#63683)
* clean useless codes in group cluster pass * remove flag cinn_new_cluster_op_method
1 parent a3b51c7 commit a031796

10 files changed

Lines changed: 7 additions & 715 deletions

File tree

paddle/cinn/hlir/dialect/operator/transforms/cinn_group_cluster_pass.cc

Lines changed: 7 additions & 702 deletions
Large diffs are not rendered by default.

paddle/cinn/runtime/flags.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ PD_DEFINE_bool(group_schedule_tiling_first,
7474
BoolFromEnv("FLAGS_group_schedule_tiling_first", false),
7575
"Whether to enable new group scheduler tiling first strategy.");
7676

77-
PD_DEFINE_bool(cinn_new_cluster_op_method,
78-
BoolFromEnv("FLAGS_cinn_new_cluster_op_method", true),
79-
"Whether to enable newly developed clustering method of group "
80-
"op for cinn.");
81-
8277
PD_DEFINE_bool(support_reduce_stride_read,
8378
BoolFromEnv("FLAGS_support_reduce_stride_read", false),
8479
"Whether to enable new group scheduler tiling first strategy.");

test/cinn/test_same_input_fusion.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
os.environ['FLAGS_enable_pir_api'] = '1'
2626
os.environ['FLAGS_use_cinn'] = '1'
2727
os.environ['FLAGS_cinn_bucket_compile'] = '1'
28-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
2928
os.environ['FLAGS_deny_cinn_ops'] = 'slice;'
3029

3130
import paddle

test/ir/pir/cinn/symbolic/test_if_st.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
os.environ['FLAGS_enable_pir_api'] = '1'
2626
os.environ['FLAGS_use_cinn'] = '1'
2727
os.environ['FLAGS_cinn_bucket_compile'] = '1'
28-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
2928

3029
import numpy as np
3130

test/ir/pir/cinn/symbolic/test_llama_if_dy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
os.environ['FLAGS_enable_pir_api'] = '1'
2727
os.environ['FLAGS_use_cinn'] = '1'
2828
os.environ['FLAGS_cinn_bucket_compile'] = '1'
29-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
3029

3130
import paddle
3231
from paddle import nn

test/ir/pir/cinn/symbolic/test_reshape_zero_shape.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
os.environ['FLAGS_enable_pir_api'] = '1'
2626
os.environ['FLAGS_use_cinn'] = '1'
2727
os.environ['FLAGS_cinn_bucket_compile'] = '1'
28-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
2928
os.environ['FLAGS_deny_cinn_ops'] = 'slice;'
3029

3130

test/ir/pir/cinn/symbolic/test_while_st.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
os.environ['FLAGS_enable_pir_api'] = '1'
2828
os.environ['FLAGS_use_cinn'] = '1'
2929
os.environ['FLAGS_cinn_bucket_compile'] = '1'
30-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
3130
os.environ['FLAGS_deny_cinn_ops'] = 'slice;'
3231

3332

test/ir/pir/cinn/test_dynamic_shape.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
os.environ['FLAGS_enable_pir_api'] = '1'
2727
os.environ['FLAGS_use_cinn'] = '1'
2828
os.environ['FLAGS_cinn_bucket_compile'] = '1'
29-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
3029
os.environ['FLAGS_deny_cinn_ops'] = 'slice;'
3130

3231
import paddle

test/ir/pir/cinn/test_fusion_reduce_trivial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
os.environ['FLAGS_enable_pir_api'] = '1'
2626
os.environ['FLAGS_use_cinn'] = '1'
2727
os.environ['FLAGS_cinn_bucket_compile'] = '1'
28-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
2928
os.environ['FLAGS_deny_cinn_ops'] = 'slice;'
3029

3130
from utils import check_jit_kernel_number

test/ir/pir/cinn/test_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
os.environ['FLAGS_enable_pir_api'] = '1'
2828
os.environ['FLAGS_use_cinn'] = '1'
2929
os.environ['FLAGS_cinn_bucket_compile'] = '1'
30-
os.environ['FLAGS_cinn_new_cluster_op_method'] = '1'
3130
os.environ['FLAGS_deny_cinn_ops'] = 'slice;'
3231

3332

0 commit comments

Comments
 (0)