Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions torchprime/launcher/thunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
)
print(f"Dumping XLA compiler outputs to {xla_dump_path}", flush=True)

# Verbose logging flags to help debug TPU hardware issue
os.environ["TPU_VMODULE"] = "slice_configuration=1,real_program_continuator=1"
os.environ["TPU_STDERR_LOG_LEVEL"] = "0"
os.environ["TPU_MIN_LOG_LEVEL"] = "0"
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "0"
Comment on lines +52 to +55
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be helpful to have in code information on what these flags individually do

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forward the env for xpk command?


# Determine the profile dir
profile_dir = mounted_artifact_dir / jobset_name / "profile" / host_name
print(f"Profile output directory: {profile_dir}", flush=True)
Expand Down