Skip to content

Give better error in run_hlo_module if HLO has collectives. #29077

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Give better error in run_hlo_module if HLO has collectives.

Before, it would segfault, as run_hlo_module (and xla::HloRunner in general) doesn't set a DeviceAssignment and the CollectiveThunk would try to deference a null DeviceAssignment pointer. I keep accidentally using run_hlo_module instead of multihost_hlo_runner and got sick of the segfaults.

Before, it would segfault, as run_hlo_module (and xla::HloRunner in general) doesn't set a DeviceAssignment and the CollectiveThunk would try to deference a null DeviceAssignment pointer. I keep accidentally using run_hlo_module instead of multihost_hlo_runner and got sick of the segfaults.

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