2020-03-06 18:09:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-07-29 17:45:54 +08:00
|
|
|
zeModuleCreate_Tracing(ze_context_handle_t hContext,
|
|
|
|
ze_device_handle_t hDevice,
|
2020-03-06 18:09:57 +08:00
|
|
|
const ze_module_desc_t *desc,
|
|
|
|
ze_module_handle_t *phModule,
|
|
|
|
ze_module_build_log_handle_t *phBuildLog);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleDestroy_Tracing(ze_module_handle_t hModule);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleBuildLogDestroy_Tracing(ze_module_build_log_handle_t hModuleBuildLog);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleBuildLogGetString_Tracing(ze_module_build_log_handle_t hModuleBuildLog,
|
|
|
|
size_t *pSize,
|
|
|
|
char *pBuildLog);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleGetNativeBinary_Tracing(ze_module_handle_t hModule,
|
|
|
|
size_t *pSize,
|
|
|
|
uint8_t *pModuleNativeBinary);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleGetGlobalPointer_Tracing(ze_module_handle_t hModule,
|
|
|
|
const char *pGlobalName,
|
2020-07-29 17:45:54 +08:00
|
|
|
size_t *pSize,
|
2020-03-06 18:09:57 +08:00
|
|
|
void **pptr);
|
|
|
|
|
2020-08-08 04:42:35 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
|
|
|
zeModuleDynamicLink_Tracing(uint32_t numModules,
|
|
|
|
ze_module_handle_t *phModules,
|
|
|
|
ze_module_build_log_handle_t *phLinkLog);
|
|
|
|
|
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
|
|
|
zeModuleGetProperties_Tracing(ze_module_handle_t hModule,
|
|
|
|
ze_module_properties_t *pModuleProperties);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeKernelCreate_Tracing(ze_module_handle_t hModule,
|
|
|
|
const ze_kernel_desc_t *desc,
|
|
|
|
ze_kernel_handle_t *phFunction);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-27 07:48:10 +08:00
|
|
|
zeKernelDestroy_Tracing(ze_kernel_handle_t hKernel);
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleGetFunctionPointer_Tracing(ze_module_handle_t hModule,
|
|
|
|
const char *pKernelName,
|
|
|
|
void **pfnFunction);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-27 07:48:10 +08:00
|
|
|
zeKernelSetGroupSize_Tracing(ze_kernel_handle_t hKernel,
|
2020-03-06 18:09:57 +08:00
|
|
|
uint32_t groupSizeX,
|
|
|
|
uint32_t groupSizeY,
|
|
|
|
uint32_t groupSizeZ);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-27 07:48:10 +08:00
|
|
|
zeKernelSuggestGroupSize_Tracing(ze_kernel_handle_t hKernel,
|
2020-03-06 18:09:57 +08:00
|
|
|
uint32_t globalSizeX,
|
|
|
|
uint32_t globalSizeY,
|
|
|
|
uint32_t globalSizeZ,
|
|
|
|
uint32_t *groupSizeX,
|
|
|
|
uint32_t *groupSizeY,
|
|
|
|
uint32_t *groupSizeZ);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-27 07:48:10 +08:00
|
|
|
zeKernelSetArgumentValue_Tracing(ze_kernel_handle_t hKernel,
|
2020-03-06 18:09:57 +08:00
|
|
|
uint32_t argIndex,
|
|
|
|
size_t argSize,
|
|
|
|
const void *pArgValue);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeKernelGetProperties_Tracing(ze_kernel_handle_t hKernel,
|
|
|
|
ze_kernel_properties_t *pKernelProperties);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeCommandListAppendLaunchKernel_Tracing(ze_command_list_handle_t hCommandList,
|
2020-03-27 07:48:10 +08:00
|
|
|
ze_kernel_handle_t hKernel,
|
2020-03-06 18:09:57 +08:00
|
|
|
const ze_group_count_t *pLaunchFuncArgs,
|
|
|
|
ze_event_handle_t hSignalEvent,
|
|
|
|
uint32_t numWaitEvents,
|
|
|
|
ze_event_handle_t *phWaitEvents);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeCommandListAppendLaunchKernelIndirect_Tracing(ze_command_list_handle_t hCommandList,
|
2020-03-27 07:48:10 +08:00
|
|
|
ze_kernel_handle_t hKernel,
|
2020-03-06 18:09:57 +08:00
|
|
|
const ze_group_count_t *pLaunchArgumentsBuffer,
|
|
|
|
ze_event_handle_t hSignalEvent,
|
|
|
|
uint32_t numWaitEvents,
|
|
|
|
ze_event_handle_t *phWaitEvents);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeCommandListAppendLaunchMultipleKernelsIndirect_Tracing(ze_command_list_handle_t hCommandList,
|
2020-03-27 07:48:10 +08:00
|
|
|
uint32_t numKernels,
|
|
|
|
ze_kernel_handle_t *phKernels,
|
2020-03-06 18:09:57 +08:00
|
|
|
const uint32_t *pCountBuffer,
|
|
|
|
const ze_group_count_t *pLaunchArgumentsBuffer,
|
|
|
|
ze_event_handle_t hSignalEvent,
|
|
|
|
uint32_t numWaitEvents,
|
|
|
|
ze_event_handle_t *phWaitEvents);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeCommandListAppendLaunchCooperativeKernel_Tracing(ze_command_list_handle_t hCommandList,
|
|
|
|
ze_kernel_handle_t hKernel,
|
|
|
|
const ze_group_count_t *pLaunchFuncArgs,
|
|
|
|
ze_event_handle_t hSignalEvent,
|
|
|
|
uint32_t numWaitEvents,
|
|
|
|
ze_event_handle_t *phWaitEvents);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeModuleGetKernelNames_Tracing(ze_module_handle_t hModule,
|
|
|
|
uint32_t *pCount,
|
|
|
|
const char **pNames);
|
|
|
|
|
2020-08-01 09:03:32 +08:00
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
2020-03-06 18:09:57 +08:00
|
|
|
zeKernelSuggestMaxCooperativeGroupCount_Tracing(ze_kernel_handle_t hKernel,
|
|
|
|
uint32_t *totalGroupCount);
|
2020-08-08 04:42:35 +08:00
|
|
|
|
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
|
|
|
zeKernelGetIndirectAccess_Tracing(ze_kernel_handle_t hKernel,
|
|
|
|
ze_kernel_indirect_access_flags_t *pFlags);
|
|
|
|
|
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
|
|
|
zeKernelGetName_Tracing(ze_kernel_handle_t hKernel,
|
|
|
|
size_t *pSize,
|
|
|
|
char *pName);
|
|
|
|
|
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
|
|
|
zeKernelGetSourceAttributes_Tracing(ze_kernel_handle_t hKernel,
|
|
|
|
uint32_t *pSize,
|
|
|
|
char **pString);
|
|
|
|
|
|
|
|
ZE_APIEXPORT ze_result_t ZE_APICALL
|
|
|
|
zeKernelSetIndirectAccess_Tracing(ze_kernel_handle_t hKernel,
|
|
|
|
ze_kernel_indirect_access_flags_t flags);
|
2020-03-06 18:09:57 +08:00
|
|
|
}
|