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

Add an option to configure layout assignment for transposes on GPU backend. #1485

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

Add an option to configure layout assignment for transposes on GPU backend.

By default, layout assignment tries to assign a layout to transposes that make
them a bitcast. This layout is then propagated inside the HloComputation, which
means if it does not cancel out with another transpose, there may be a copy op
in some other part of the computation. This copy will later be turned back into
a transpose. If you want to avoid that transposes are moved around, you can try
setting this new option to false:
"XLA_FLAGS=--xla_gpu_transpose_to_bitcast=false"

…ckend.

By default, layout assignment tries to assign a layout to transposes that make
them a bitcast. This layout is then propagated inside the HloComputation, which
means if it does not cancel out with another transpose, there may be a copy op
in some other part of the computation. This copy will later be turned back into
a transpose. If you want to avoid that transposes are moved around, you can try
setting this new option to false:
"XLA_FLAGS=--xla_gpu_transpose_to_bitcast=false"

PiperOrigin-RevId: 512009167
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