-
Notifications
You must be signed in to change notification settings - Fork 180
[XPTI] introduce new interface to kineto for PTI-0.11 #1066
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
XPUPTI_CALL(ptiViewEnableRuntimeApi(1, pti_api_group_id::PTI_API_GROUP_SYCL, urUSMHostAlloc_id)); | ||
XPUPTI_CALL(ptiViewEnableRuntimeApi(1, pti_api_group_id::PTI_API_GROUP_SYCL, urUSMSharedAlloc_id)); | ||
XPUPTI_CALL(ptiViewEnableRuntimeApi(1, pti_api_group_id::PTI_API_GROUP_SYCL, urUSMDeviceAlloc_id)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we still need these UR specific API ids? we should use API set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We will use API set, just apply the previous patch and open a draft PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then, can we make this PR as a draft?
aebebe7
to
a41d6f7
Compare
Signed-off-by: Chen, Zejun <[email protected]>
Hi, @aaronenyeshi Could you help review this PR? It is used to update the xpu code in kineto to make it compatible for our new tracing tools. Thank you. |
Hi, @aaronenyeshi Could you help review this PR? It is used to update the xpu code in kineto to make it compatible for our new tracing tools. Thank you. |
@@ -170,6 +170,25 @@ void XpuptiActivityApi::bufferCompleted( | |||
} | |||
#endif | |||
|
|||
#if PTI_VERSION_MAJOR > 0 || PTI_VERSION_MINOR > 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be useful to use a version schema similar to cuda where they embed the MAJOR, MINOR and PATCH number into one number. If you use OR statements like this it can lead to more complexity if many ifdefs are needed
@sraikund16 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Aaron is not actively maintaining Kineto currently. You can reach out to me for future requests! |
Thank you @sraikund16 Really appreciate that |
This PR is used to change the interface for XPTI in kineto to be compatible with the PTI 0.11 release