Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XLA:cpu] allow overriding of MLIR pass pipeline via debug flags #8543

Merged
1 commit merged into from
Jan 18, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jan 17, 2024

[XLA:cpu] allow overriding of MLIR pass pipeline via debug flags

Use a backend-specific flag to allow overriding the MLIR pass pipeline when
compiling to CPU via the new runtime pass. This is helpful to debug the
pipeline, in particular the performance of the generated code, without having
to recompile XLA every time. The feature is marked as experimental, hidden deep
inside debug options and obviously disabled in absence of the option.

Also update the signatures of create_compilation_pipeline and
create_specialization_pipeline in JitOptions to return a status. This
allows for a more graceful failure when MLIR pass pipeline cannot be
constructed. CPU pipeline constructor was already aborting with a fatal error,
update that to returning internal error. This makes the JIT friendlier to
library users such as JAX.

@copybara-service copybara-service bot force-pushed the test_598624926 branch 3 times, most recently from f4eae4b to 7fc319b Compare January 18, 2024 13:13
Use a backend-specific flag to allow overriding the MLIR pass pipeline when
compiling to CPU via the new runtime pass. This is helpful to debug the
pipeline, in particular the performance of the generated code, without having
to recompile XLA every time. The feature is marked as experimental, hidden deep
inside debug options and obviously disabled in absence of the option.

Also update the signatures of `create_compilation_pipeline` and
`create_specialization_pipeline` in `JitOptions` to return a status. This
allows for a more graceful failure when MLIR pass pipeline cannot be
constructed. CPU pipeline constructor was already aborting with a fatal error,
update that to returning internal error. This makes the JIT friendlier to
library users such as JAX.

PiperOrigin-RevId: 599480560
@copybara-service copybara-service bot closed this pull request by merging all changes into main in f685679 Jan 18, 2024
@copybara-service copybara-service bot deleted the test_598624926 branch January 18, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant