2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-22 20:22:06 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/command_queue/command_queue_hw.h"
|
2018-03-30 23:57:51 +08:00
|
|
|
#include "runtime/command_queue/gpgpu_walker.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "runtime/command_stream/command_stream_receiver.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "runtime/device/device.h"
|
|
|
|
#include "runtime/event/event.h"
|
|
|
|
#include "runtime/memory_manager/surface.h"
|
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "hw_cmds.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
cl_int CommandQueueHw<GfxFamily>::enqueueMigrateMemObjects(cl_uint numMemObjects,
|
|
|
|
const cl_mem *memObjects,
|
|
|
|
cl_mem_migration_flags flags,
|
|
|
|
cl_uint numEventsInWaitList,
|
|
|
|
const cl_event *eventWaitList,
|
|
|
|
cl_event *event) {
|
|
|
|
NullSurface s;
|
|
|
|
Surface *surfaces[] = {&s};
|
|
|
|
|
|
|
|
enqueueHandler<CL_COMMAND_MIGRATE_MEM_OBJECTS>(surfaces,
|
|
|
|
false,
|
2019-02-22 20:22:06 +08:00
|
|
|
MultiDispatchInfo(),
|
2017-12-21 07:45:38 +08:00
|
|
|
numEventsInWaitList,
|
|
|
|
eventWaitList,
|
|
|
|
event);
|
2019-02-22 20:22:06 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
return CL_SUCCESS;
|
|
|
|
}
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|