mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Move EnableCrossDeviceAccess to release_variables.inl
Change-Id: Id16776ebb406ac06e9db534b8b743c24fa1e98d1 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
c1b8ae7354
commit
df75856f17
@@ -70,14 +70,11 @@ ze_result_t DeviceImp::canAccessPeer(ze_device_handle_t hPeerDevice, ze_bool_t *
|
||||
*value = true;
|
||||
}
|
||||
|
||||
auto settingsReader = NEO::SettingsReaderCreator::create(NEO::oclRegPath);
|
||||
int64_t accessOverride = settingsReader->getSetting("EnableCrossDeviceAcesss", -1);
|
||||
|
||||
if ((accessOverride == 1) || (NEO::DebugManager.flags.EnableCrossDeviceAccess.get() == 1)) {
|
||||
if (NEO::DebugManager.flags.EnableCrossDeviceAccess.get() == 1) {
|
||||
*value = true;
|
||||
}
|
||||
|
||||
if ((accessOverride == 0) || (NEO::DebugManager.flags.EnableCrossDeviceAccess.get() == 0)) {
|
||||
if (NEO::DebugManager.flags.EnableCrossDeviceAccess.get() == 0) {
|
||||
*value = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user