-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add a new utility function to return the device info as a C string object. #620
Conversation
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.
LGTM with small suggestions.
By the way, the Python API should be changed too, in |
Let us add that in #542 |
50f6935
to
38d5a1f
Compare
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.
Looks good.
no longer needed wit #620 merged
The PR adds a new helper function in dpctl_sycl_device_manager called
DPCTLDeviceMgr_GetDeviceInfoStr
. The function returns a C string containing the device attributes currently printed out byDPCTLDeviceMgr_PrintDeviceInfo
. The change will unblock #542.Added a helper to convert C++ strings to C strings, Reduces code duplication.