Skip to content

Commit dadfc93

Browse files
wsmosesgiordanogithub-actions[bot]avik-pal
authored
JLL adapt (#1187)
* JLL adapt * Update src/Compiler.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update Compiler.jl * Update Project.toml --------- Co-authored-by: Mosè Giordano <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Avik Pal <[email protected]>
1 parent add2ae9 commit dadfc93

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ PythonCall = "0.9"
8787
Random = "1.10"
8888
Random123 = "1.7"
8989
ReactantCore = "0.1.9"
90-
Reactant_jll = "0.0.144"
90+
Reactant_jll = "0.0.146"
9191
ScopedValues = "1.3.0"
9292
Scratch = "1.2"
9393
Sockets = "1.10"

src/Compiler.jl

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ function optimization_passes(;
476476
dus_to_concat::Bool=false,
477477
recognize_comms::Bool=true,
478478
lower_comms::Bool=true,
479+
max_constant_threshold::Int=1024,
479480
)
480481
transform_passes_list = [
481482
"patterns=compare_op_canon<16>",
@@ -516,8 +517,8 @@ function optimization_passes(;
516517
"cse_neg<16>",
517518
"cse_abs<16>",
518519
"cse_concatenate<16>",
519-
"concatenate_op_canon<16>(1024)",
520-
"select_op_canon<16>(1024)",
520+
"concatenate_op_canon<16>($max_constant_threshold)",
521+
"select_op_canon<16>($max_constant_threshold)",
521522
"add_simplify<16>",
522523
"sub_simplify<16>",
523524
"and_simplify<16>",
@@ -531,6 +532,9 @@ function optimization_passes(;
531532
"div_simplify<16>",
532533
"rem_simplify<16>",
533534
"pow_simplify<16>",
535+
"simplify_extend<16>",
536+
"simplify_wrap<16>",
537+
"simplify_rotate<16>",
534538
"sqrt_simplify<16>",
535539
"cos_simplify<16>",
536540
"sin_simplify<16>",
@@ -551,15 +555,16 @@ function optimization_passes(;
551555
"reduce_to_reshape<16>",
552556
"broadcast_to_reshape<16>",
553557
"gather_simplify<16>",
554-
"iota_simplify<16>(1024)",
555-
"broadcast_in_dim_simplify<16>(1024)",
558+
"slice_internal",
559+
"iota_simplify<16>($max_constant_threshold)",
560+
"broadcast_in_dim_simplify<16>($max_constant_threshold)",
556561
"convert_concat<1>",
557562
"dynamic_update_to_concat<1>",
558563
"slice_of_dynamic_update<1>",
559564
"slice_elementwise<1>",
560565
"slice_pad<1>",
561566
"dot_reshape_dot<1>",
562-
"concat_const_prop<1>",
567+
"concat_const_prop<1>($max_constant_threshold)",
563568
"concat_fuse<1>",
564569
"pad_reshape_pad<1>",
565570
"pad_pad<1>",
@@ -711,6 +716,7 @@ function optimization_passes(;
711716

712717
if WHILE_CONCAT[]
713718
push!(transform_passes_list, "while_concat")
719+
push!(transform_passes_list, "while_wrap")
714720
end
715721

716722
if dus_to_concat

0 commit comments

Comments
 (0)