- Notifications
You must be signed in to change notification settings - Fork 256
Add cl_intel_pci_bus_info extension #374
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
Conversation
bashbaug left a comment
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.
I didn't fully review the implementation of this feature, but the interface definitions look as I would expect them to look and we have reserved enum 0x410f for this extension.
zzdanowicz left a comment
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.
In general code looks OK, but it misses ULTs. Please also answer Michal questions and comments
zzdanowicz left a comment
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.
Code looks good, but not sure if automatic checks will allow it. Let give it a try.
| auto gdi = getGdi(); | ||
| UNRECOVERABLE_IF(gdi == nullptr); | ||
| | ||
| if (gdi->queryAdapterInfo(&queryAdapterInfo) == STATUS_SUCCESS) { |
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.
this query seems to be redundant, IMO you can reuse adapterBDF from Wddm. See here as a reference for tests: https://github.com/intel/compute-runtime/blob/master/opencl/test/unit_test/windows/os_interface_tests.cpp#L31
Signed-off-by: Egor Suldin <egor.suldin@intel.com>
Add the extension to obtain PCI bus information about an OpenCL device.
It will allow profiling tools like Intel VTune to attribute the profiling
data to the appropriate device. And this extension will especially useful
if two or more identical devices are installed in the system.
Signed-off-by: Egor Suldin egor.suldin@intel.com