Skip to content

Conversation

@moksiuc
Copy link
Contributor

@moksiuc moksiuc commented Dec 23, 2025

It allows Kineto to label xpu related plots in perfetto with 'sycl queue' label

@meta-cla meta-cla bot added the cla signed label Dec 23, 2025
@moksiuc
Copy link
Contributor Author

moksiuc commented Dec 23, 2025

@EikanWang, @gujinghui

@moksiuc
Copy link
Contributor Author

moksiuc commented Dec 29, 2025

CI results are there:
pytorch/pytorch#171208

device_id,
sycl_queue_id,
sycl_queue_id,
fmt::format("sycl queue {}", sycl_queue_id));
Copy link

@gujinghui gujinghui Jan 4, 2026

Choose a reason for hiding this comment

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

The "sycl queue" will be shown in profiling chart?
Similar to CUDA, SYCL should not have fixed queue id. This sycl_queue_id should be queue object address or handler provided by PTI?
Let's call it Stream, instead, to avoid confusing user. Below is the reference from AIUPTI.

device, id, kExceedMaxTid + id, fmt::format("Stream {}", id)));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is sycl_queue_id provided by PTI.
I'm not sure if 'Stream' is meaningful on XPU architecture and would not cause confusion.

Choose a reason for hiding this comment

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

That should be OK. For PyTorch profiler user, the queue ID is meaningless, as it's runtime value.
In our design, there's 1 on 1 mapping between PyTorch Stream and SYCL queue. And, in most case, we are not going to expose SYCL queue to user. The user only wants to know there're different PyTorch Streams.

@moksiuc moksiuc requested a review from gujinghui January 5, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants