mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Unlock multi device setup for shared allocation
Related-To: NEO-5422 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
60ee8cc701
commit
ae1e5a91b4
@@ -209,6 +209,10 @@ void *SVMAllocsManager::createUnifiedMemoryAllocation(size_t size,
|
||||
void *SVMAllocsManager::createSharedUnifiedMemoryAllocation(size_t size,
|
||||
const UnifiedMemoryProperties &memoryProperties,
|
||||
void *cmdQ) {
|
||||
if (memoryProperties.rootDeviceIndices.size() > 1 && !memoryProperties.device) {
|
||||
return createHostUnifiedMemoryAllocation(size, memoryProperties);
|
||||
}
|
||||
|
||||
auto supportDualStorageSharedMemory = memoryManager->isLocalMemorySupported(*memoryProperties.rootDeviceIndices.begin());
|
||||
|
||||
if (DebugManager.flags.AllocateSharedAllocationsWithCpuAndGpuStorage.get() != -1) {
|
||||
|
||||
Reference in New Issue
Block a user