mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
feature: add peer access check on driver init
Related-To: NEO-14885, HSD-14024947073 Signed-off-by: Alicja Lukaszewicz <alicja.lukaszewicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2e58669fe9
commit
bca503548a
@@ -89,6 +89,15 @@ void DriverImp::initialize(ze_result_t *result) {
|
||||
auto driverHandle = DriverHandle::create(std::move(devices), envVariables, result);
|
||||
if (driverHandle) {
|
||||
globalDriverHandles->push_back(driverHandle);
|
||||
|
||||
auto &devicesToExpose = static_cast<DriverHandleImp *>(driverHandle)->devicesToExpose;
|
||||
std::vector<NEO::Device *> neoDeviceToExpose;
|
||||
neoDeviceToExpose.reserve(devicesToExpose.size());
|
||||
for (auto deviceToExpose : devicesToExpose) {
|
||||
neoDeviceToExpose.push_back(Device::fromHandle(deviceToExpose)->getNEODevice());
|
||||
}
|
||||
|
||||
NEO::Device::initializePeerAccessForDevices(DeviceImp::queryPeerAccess, neoDeviceToExpose);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user