34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/command_stream/task_count_helper.h"
|
|
|
|
#include "CL/cl.h"
|
|
|
|
namespace NEO {
|
|
extern bool isGTPinInitialized;
|
|
|
|
void gtpinNotifyContextCreate(cl_context context);
|
|
void gtpinNotifyContextDestroy(cl_context context);
|
|
void gtpinNotifyKernelCreate(cl_kernel kernel);
|
|
void gtpinNotifyKernelSubmit(cl_kernel kernel, void *pCmdQueue);
|
|
void gtpinNotifyPreFlushTask(void *pCmdQueue);
|
|
void gtpinNotifyFlushTask(TaskCountType flushedTaskCount);
|
|
void gtpinNotifyTaskCompletion(TaskCountType completedTaskCount);
|
|
void gtpinNotifyMakeResident(void *pKernel, void *pCommandStreamReceiver);
|
|
void gtpinNotifyUpdateResidencyList(void *pKernel, void *pResidencyVector);
|
|
void gtpinNotifyPlatformShutdown();
|
|
inline bool gtpinIsGTPinInitialized() { return isGTPinInitialized; }
|
|
void *gtpinGetIgcInit();
|
|
void gtpinSetIgcInit(void *pIgcInitPtr);
|
|
void gtpinRemoveCommandQueue(void *pCmdQueue);
|
|
|
|
void gtPinTryNotifyInit();
|
|
} // namespace NEO
|