mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Expose sharing for sub-devices.
Change-Id: I72b715d2eacba0178ee64eb4f37043bd453cef85 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
d9334bea02
commit
c959847355
@@ -186,7 +186,7 @@ void ClDevice::initializeCaps() {
|
||||
deviceExtensions += "cl_khr_3d_image_writes ";
|
||||
}
|
||||
|
||||
auto sharingAllowed = (HwHelper::getSubDevicesCount(&hwInfo) == 1u);
|
||||
auto sharingAllowed = (getNumAvailableDevices() == 1u);
|
||||
if (sharingAllowed) {
|
||||
deviceExtensions += sharingFactory.getExtensions(driverInfo.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user