mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Remove ensureMemoryOnDevice function
Remove: - ensureMemoryOnDevice - lastUsedRootDeviceIndex - requiredRootDeviceIndex - getMigrateableMultiGraphicsAllocation Related-To: NEO-4589 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0bc04f3c31
commit
7bfe26a08d
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
* Copyright (C) 2017-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -26,13 +26,6 @@ cl_int CommandQueueHw<GfxFamily>::enqueueMigrateMemObjects(cl_uint numMemObjects
|
||||
NullSurface s;
|
||||
Surface *surfaces[] = {&s};
|
||||
|
||||
auto rootDeviceIndex = getDevice().getRootDeviceIndex();
|
||||
|
||||
for (unsigned int object = 0; object < numMemObjects; object++) {
|
||||
auto memObject = castToObject<MemObj>(memObjects[object]);
|
||||
memObject->getMigrateableMultiGraphicsAllocation().ensureMemoryOnDevice(*getDevice().getMemoryManager(), rootDeviceIndex);
|
||||
}
|
||||
|
||||
enqueueHandler<CL_COMMAND_MIGRATE_MEM_OBJECTS>(surfaces,
|
||||
false,
|
||||
MultiDispatchInfo(),
|
||||
|
||||
Reference in New Issue
Block a user