Skip to content

Conversation

ysiraichi
Copy link
Collaborator

This PR introduces a macro and a function, generalizing the crash report on non-ok status. This should be used whenever a non-ok status represents an internal error, i.e. something that the user has no control over.

Key Changes:

  • Created OkOrDie() function for crashing on non-ok status with source location information
  • Updated XLA_CHECK_OK() macro definition (moved to status.h), for calling OkOrDie() with the appropriate source location
  • Updated _get_graph_hash() implementation to call XLA_CHECK_OK() instead of crafting a report with ABSL_CHECK() directly

@ysiraichi ysiraichi force-pushed the ysiraichi/status-crash-report branch from 2b371fc to e6a0f5f Compare August 14, 2025 13:22
@ysiraichi ysiraichi merged commit 2c34318 into master Aug 14, 2025
41 of 42 checks passed
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.

2 participants