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:
Alicja Lukaszewicz
2025-08-27 13:54:40 +00:00
committed by Compute-Runtime-Automation
parent 2e58669fe9
commit bca503548a
54 changed files with 486 additions and 86 deletions

View File

@@ -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);
}
}