2018-01-03 17:54:31 +08:00
|
|
|
/*
|
2020-02-22 16:28:27 +08:00
|
|
|
* Copyright (C) 2018-2020 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
|
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "CL/cl.h"
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
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);
|
|
|
|
void gtpinNotifyFlushTask(uint32_t flushedTaskCount);
|
|
|
|
void gtpinNotifyTaskCompletion(uint32_t completedTaskCount);
|
|
|
|
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);
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|