mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
When a shared-allocation is created in a multi-device system and no device is passed during the call, then the allocation needs to be associated with all the devices. For now, that means we default to creating the shared-allocation in the host, with no device-backing memory, so all devices can access it. However, if a device is passed, then the shared-allocation is expected to be accessed only by that device, and there is no need to allocate it solely in the host. Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>