2018-02-08 23:00:20 +08:00
|
|
|
/*
|
2020-02-22 16:28:27 +08:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-02-08 23:00:20 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-02-08 23:00:20 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/command_queue/command_queue.h"
|
|
|
|
#include "opencl/source/kernel/kernel.h"
|
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "CL/cl.h"
|
|
|
|
#include "ocl_igc_shared/gtpin/gtpin_ocl_interface.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-02-08 23:00:20 +08:00
|
|
|
|
|
|
|
struct GTPinKernelExec {
|
|
|
|
Kernel *pKernel;
|
|
|
|
cl_mem gtpinResource;
|
|
|
|
CommandQueue *pCommandQueue;
|
|
|
|
gtpin::command_buffer_handle_t commandBuffer;
|
|
|
|
uint32_t taskCount;
|
|
|
|
bool isTaskCountValid;
|
|
|
|
bool isResourceResident;
|
|
|
|
|
|
|
|
GTPinKernelExec() {
|
|
|
|
pKernel = nullptr;
|
|
|
|
gtpinResource = nullptr;
|
|
|
|
pCommandQueue = nullptr;
|
|
|
|
commandBuffer = nullptr;
|
|
|
|
taskCount = 0;
|
|
|
|
isTaskCountValid = false;
|
|
|
|
isResourceResident = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
typedef struct GTPinKernelExec gtpinkexec_t;
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|