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

Allow debug_dump_gcs to be specified with other XLA_FLAGS #169

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

Conversation

jonb377
Copy link
Collaborator

@jonb377 jonb377 commented Aug 8, 2024

Fixes / Features

  • debug-dump-gcs doesn't need to be exclusive with environment-specified XLA_FLAGS.

Testing / Documentation

Testing details:

  • xpk workload create ... --debug-dump-gcs gs://foo/bar --env XLA_FLAGS=--xla_dump_to=/foo/bar => ValueError: Conflict: --xla_dump_to flag defined by both --debug_dump_gcs and XLA_FLAGS in container environment. Please choose one way to define.

  • xpk workload create ... --debug-dump-gcs gs://foo/bar --env XLA_FLAGS=--xla_foo=bar => workload created with XLA_FLAGS --xla_foo=bar --xla_dump_to=/tmp/xla_dump/

  • xpk workload create ... --debug-dump-gcs gs://foo/bar => workload created with XLA_FLAGS --xla_dump_to=/tmp/xla_dump/ (note the leading space, but XLA has no problem parsing).

  • [ y ] Tests pass

  • [ y ] Appropriate changes to documentation are included in the PR

@jonb377 jonb377 requested a review from Obliviour as a code owner August 8, 2024 18:28
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