Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add toggle functionality for XPU profiler#155135

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@frost-intel
Copy link
Collaborator

@frost-intelfrost-intel commentedJun 4, 2025
edited by pytorch-botbot
Loading

Fixes#154898 by adding ability to toggle XPU profiler on and off (which has already been added inpytorch/kineto#1088

cc@gujinghui@EikanWang@fengyuan14@guangyey

@pytorch-bot
Copy link

pytorch-botbot commentedJun 4, 2025
edited
Loading

🔗 Helpful Links

🧪 See artifacts and rendered test results athud.pytorch.org/pr/155135

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (3 Unrelated Failures)

As of commit58b667d with merge based99cac2 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

TEST_WITH_ROCM,
TestCase,
)
fromtorch.testing._internal.triton_utilsimportrequires_gpu
Copy link
Collaborator

Choose a reason for hiding this comment

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

This API is used in Inductor, especially for triton, so I think we should avoid it here.

Comment on lines 2040 to 2045
iftorch.cuda.is_available():
gpu_activity=ProfilerActivity.CUDA
device="cuda"
eliftorch.xpu.is_available():
gpu_activity=ProfilerActivity.XPU
device="xpu"
Copy link
Collaborator

@guangyeyguangyeyJun 5, 2025
edited
Loading

Choose a reason for hiding this comment

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

Suggested change
iftorch.cuda.is_available():
gpu_activity=ProfilerActivity.CUDA
device="cuda"
eliftorch.xpu.is_available():
gpu_activity=ProfilerActivity.XPU
device="xpu"
acc=torch.accelerator.current_accelerator()
self.assertIsNotNone(acc)
device=acc.type
gpu_activity=getattr(ProfilerActivity,device.upper(),None)
self.assertIsNotNone(gpu_activity)

@guangyeyguangyey added module: xpuIntel XPU related issues release notes: xpurelease notes category ciflow/xpuRun XPU CI tasks labelsJun 5, 2025
@guangyeyguangyey moved this toIn Progress inPyTorch IntelJun 5, 2025
self.assertTrue(any("aten"ine.nameforeinp.events()))

self.assertTrue(any("cuda"ine.nameforeinp.events()))
self.assertTrue(any(str(device)ine.nameforeinp.events()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

device should already bestr type.

Copy link
Collaborator

@guangyeyguangyey left a comment

Choose a reason for hiding this comment

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

LGTM.

TEST_WITH_ROCM,
TestCase,
TEST_CUDA,
TEST_XPU,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please fix the lint error.

@frost-intelfrost-intel added ciflow/trunkTrigger trunk jobs on your pull request ciflow/xpuRun XPU CI tasks labelsJun 18, 2025
@guangyeyguangyey marked this pull request as ready for reviewJune 18, 2025 12:45
@guangyeyguangyey moved this fromIn Progress toReview Required inPyTorch IntelJun 18, 2025
@frost-intel
Copy link
CollaboratorAuthor

@sraikund16 Any chance to get this reviewed/merged before landing deadline today?

sraikund16 reacted with thumbs up emoji

@sraikund16
Copy link
Contributor

@pytorchbot merge

pytorch-bot[bot] reacted with thumbs up emoji

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in thewiki.

Questions? Feedback? Please reach out to thePyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@guangyeyguangyeyguangyey approved these changes

@sraikund16sraikund16sraikund16 approved these changes

Assignees

No one assigned

Labels

ciflow/trunkTrigger trunk jobs on your pull requestciflow/xpuRun XPU CI tasksMergedmodule: xpuIntel XPU related issuesopen sourcerelease notes: xpurelease notes category

Projects

Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[XPU] Support toggling profiler on/off for XPU.

5 participants

@frost-intel@sraikund16@pytorchmergebot@guangyey@pytorchbot

[8]ページ先頭

©2009-2025 Movatter.jp