Skip to content

Clean XpuptiActivityApi::singleton() and virtual keyword usage#1313

Open
moksiuc wants to merge 9 commits intopytorch:mainfrom
moksiuc:moksiuci_6674_api_singleton
Open

Clean XpuptiActivityApi::singleton() and virtual keyword usage#1313
moksiuc wants to merge 9 commits intopytorch:mainfrom
moksiuc:moksiuci_6674_api_singleton

Conversation

@moksiuc
Copy link
Copy Markdown
Contributor

@moksiuc moksiuc commented Mar 18, 2026

Stop methods [push|pop]CorrelationID being static and getting api singleton.
Remove unnecessary virtual keywords.

moksiuc added 2 commits March 18, 2026 14:55
Stop methods [push|pop]CorrelationID being static and getting
api singleton.
@meta-cla meta-cla bot added the cla signed label Mar 18, 2026
@moksiuc moksiuc changed the title Moksiuci 6674 api singleton Clean XpuptiActivityApi::singleton() usage Mar 18, 2026
@moksiuc
Copy link
Copy Markdown
Contributor Author

moksiuc commented Mar 18, 2026

@EikanWang, @gujinghui

@moksiuc moksiuc changed the title Clean XpuptiActivityApi::singleton() usage Clean XpuptiActivityApi::singleton() and virtual keyword usage Mar 20, 2026
@gujinghui
Copy link
Copy Markdown

The original code aligns with CuPTI and others. Let's keep it as is unless we must have it in future.

@moksiuc
Copy link
Copy Markdown
Contributor Author

moksiuc commented Apr 10, 2026

The original code aligns with CuPTI and others. Let's keep it as is unless we must have it in future.

Maybe it is necessary in their case.
In our code it is unjustified and should be like after proposed modification.
The modified parts are entirely internal xpu code and have no impact on CuPTI and others code.

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