Skip to content

Conversation

@esuldin
Copy link
Contributor

@esuldin esuldin commented Nov 5, 2020

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

Copy link
Contributor

@bashbaug bashbaug left a 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.

Copy link
Contributor

@zzdanowicz zzdanowicz left a 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

Copy link
Contributor

@zzdanowicz zzdanowicz left a 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) {
Copy link
Contributor

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>
@esuldin esuldin closed this May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants