mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: While creating shared memory use given device
When creating shared USM, currently default root device index is used when accessing memoryManager. This change fixes this issue, by using device provided by caller. In case device is not provided, then default root device index could be used. Related-To: LOCI-4474 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
694e731a01
commit
38415162c5
@@ -125,6 +125,7 @@ class SVMAllocsManager {
|
||||
alignment(alignment),
|
||||
rootDeviceIndices(rootDeviceIndices),
|
||||
subdeviceBitfields(subdeviceBitfields){};
|
||||
uint32_t getRootDeviceIndex() const;
|
||||
InternalMemoryType memoryType = InternalMemoryType::NOT_SPECIFIED;
|
||||
MemoryProperties allocationFlags;
|
||||
Device *device = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user