2018-01-03 17:54:31 +08:00
|
|
|
/*
|
2023-01-05 19:41:06 +08:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2018-01-03 17:54:31 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-03 17:54:31 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-11-22 21:53:59 +08:00
|
|
|
#include "shared/source/command_stream/task_count_helper.h"
|
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "CL/cl.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-03-23 01:46:09 +08:00
|
|
|
extern bool isGTPinInitialized;
|
|
|
|
|
2018-01-03 17:54:31 +08:00
|
|
|
void gtpinNotifyContextCreate(cl_context context);
|
|
|
|
void gtpinNotifyContextDestroy(cl_context context);
|
2018-01-24 20:26:46 +08:00
|
|
|
void gtpinNotifyKernelCreate(cl_kernel kernel);
|
2018-02-08 23:00:20 +08:00
|
|
|
void gtpinNotifyKernelSubmit(cl_kernel kernel, void *pCmdQueue);
|
|
|
|
void gtpinNotifyPreFlushTask(void *pCmdQueue);
|
2022-11-22 21:53:59 +08:00
|
|
|
void gtpinNotifyFlushTask(TaskCountType flushedTaskCount);
|
|
|
|
void gtpinNotifyTaskCompletion(TaskCountType completedTaskCount);
|
2018-02-08 23:00:20 +08:00
|
|
|
void gtpinNotifyMakeResident(void *pKernel, void *pCommandStreamReceiver);
|
|
|
|
void gtpinNotifyUpdateResidencyList(void *pKernel, void *pResidencyVector);
|
|
|
|
void gtpinNotifyPlatformShutdown();
|
2018-03-23 01:46:09 +08:00
|
|
|
inline bool gtpinIsGTPinInitialized() { return isGTPinInitialized; }
|
2018-08-06 19:19:32 +08:00
|
|
|
void *gtpinGetIgcInit();
|
2020-03-23 20:41:48 +08:00
|
|
|
void gtpinSetIgcInit(void *pIgcInitPtr);
|
2021-08-31 23:44:43 +08:00
|
|
|
void gtpinRemoveCommandQueue(void *pCmdQueue);
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|