Skip to content

[AIU Profiler] Allow AIU profiling via env vars on newer PyTorch versions#1172

Open
mcalman wants to merge 2 commits intopytorch:mainfrom
mcalman:privateuse-env
Open

[AIU Profiler] Allow AIU profiling via env vars on newer PyTorch versions#1172
mcalman wants to merge 2 commits intopytorch:mainfrom
mcalman:privateuse-env

Conversation

@mcalman
Copy link
Contributor

@mcalman mcalman commented Nov 12, 2025

Fixes a bug where setting the environment variable ProfilerActivity=PrivateUse1 wouldn't enable the PrivateUse1 activities for AIU as intended.

This is because ActivityType::PRIVATEUSE1_RUNTIME and ActivityType::PRIVATEUSE1_DRIVER are enabled by default when passing torch.profiler.ProfilerActivity.CPU to torch.profiler.profile on newer versions of PyTorch (see: here).

Signed-off-by: Max Calman <maxcalman1@gmail.com>
Copy link
Contributor

@divyanshk divyanshk left a comment

Choose a reason for hiding this comment

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

@mcalman can you resolve the merge conflict ?

@mcalman
Copy link
Contributor Author

mcalman commented Jan 26, 2026

@divyanshk thanks for the review! I have resolved the merge conflicts.

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