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