Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

Omit default if device info is provided by a profiler plugin session - #1047

Closed
mcalman wants to merge 3 commits into
pytorch:mainfrom
mcalman:external_device_info
Closed

mcalman wants to merge 3 commits into
pytorch:mainfrom
mcalman:external_device_info

Conversation

@mcalman

@mcalman mcalman commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

We are working to support our own custom backend and have noticed the following issue...

Currently, default GPU device info is written to the output JSON even if a profiler plugin provides its own device info. The rationale of comment #909 (comment) regarding this design decision does not hold if the plugin device uses process IDs in the range 0-15. In these cases, you have overlapping process_labels entries in the JSON and you end up with a concatenation of device names when viewing the trace.

image

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@sraikund16 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@mcalman has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@sraikund16 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@sraikund16 merged this pull request in 26661c0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants