Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,8 @@ function compile_mlir!(
()
end

legal_to_run_shardy_passes = compile_options.optimization_passes !== :before_raise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also may need before_jit


if compile_options.optimization_passes === :all
run_pass_pipeline!(
mod,
Expand Down Expand Up @@ -2173,7 +2175,7 @@ function compile_mlir!(
# shardy passes
use_shardy_partitioner = false
result_shardings = missing
if is_sharded
if is_sharded && legal_to_run_shardy_passes
module_op = copy(MLIR.IR.Operation(mod))
mod_copied = MLIR.IR.Module(module_op)

Expand Down
Loading