Skip to content

[xla:cpu] Add DotLibraryRewriter rewrite options for oneDNN and XNNPACK. #28923

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

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

copybara-service[bot]
Copy link

[xla:cpu] Add DotLibraryRewriter rewrite options for oneDNN and XNNPACK.

Also:

  • Add a template function SetterForRepeatedEnum to parse repeated field flags. Make --xla_gpu_enable_command_buffer and --xla_gpu_unsupported_generic_triton_emitter_features call this generic parser instead.
  • This fixes existing bugs when parsing --xla_gpu_enable_command_buffer:
    • In add/remove mode, the existing setter only parses the first option and return. This PR makes it parse all options in the list.
    • The existing setters allow duplicate options. This PR ensures each option appear once.
  • List the missing XNN_GRAPH_FUSION_MODE_GREEDY_SLINKY enum value in the description for xla_cpu_experimental_xnn_graph_fusion_mode flag.
  • Add more keep-sorted keywords to keep XLA:CPU flags sorted in xla.proto.
  • Remove unused headers and dependencies from debug_options_flags.

Also:
* Add a template function `SetterForRepeatedEnum` to parse repeated field flags. Make `--xla_gpu_enable_command_buffer` and `--xla_gpu_unsupported_generic_triton_emitter_features` call this generic parser instead.
* This fixes existing bugs when parsing `--xla_gpu_enable_command_buffer`:
  * In add/remove mode, the existing setter only parses the first option and return. This PR makes it parse all options in the list.
  * The existing setters allow duplicate options. This PR ensures each option appear once.
* List the missing `XNN_GRAPH_FUSION_MODE_GREEDY_SLINKY` enum value in the description for `xla_cpu_experimental_xnn_graph_fusion_mode` flag.
* Add more keep-sorted keywords to keep XLA:CPU flags sorted in `xla.proto`.
* Remove unused headers and dependencies from `debug_options_flags`.
PiperOrigin-RevId: 783276995
@copybara-service copybara-service bot merged commit 6952696 into main Jul 15, 2025
@copybara-service copybara-service bot deleted the test_780144549 branch July 15, 2025 11:23
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