| 1 |
/* |
| 2 |
* Copyright (C) 2020-2022 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
|
| 10 |
extern "C" { |
| 11 |
|
| 12 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 13 |
zeModuleCreateTracing(ze_context_handle_t hContext, |
| 14 |
ze_device_handle_t hDevice, |
| 15 |
const ze_module_desc_t *desc, |
| 16 |
ze_module_handle_t *phModule, |
| 17 |
ze_module_build_log_handle_t *phBuildLog); |
| 18 |
|
| 19 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 20 |
zeModuleDestroyTracing(ze_module_handle_t hModule); |
| 21 |
|
| 22 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 23 |
zeModuleBuildLogDestroyTracing(ze_module_build_log_handle_t hModuleBuildLog); |
| 24 |
|
| 25 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 26 |
zeModuleBuildLogGetStringTracing(ze_module_build_log_handle_t hModuleBuildLog, |
| 27 |
size_t *pSize, |
| 28 |
char *pBuildLog); |
| 29 |
|
| 30 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 31 |
zeModuleGetNativeBinaryTracing(ze_module_handle_t hModule, |
| 32 |
size_t *pSize, |
| 33 |
uint8_t *pModuleNativeBinary); |
| 34 |
|
| 35 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 36 |
zeModuleGetGlobalPointerTracing(ze_module_handle_t hModule, |
| 37 |
const char *pGlobalName, |
| 38 |
size_t *pSize, |
| 39 |
void **pptr); |
| 40 |
|
| 41 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 42 |
zeModuleDynamicLinkTracing(uint32_t numModules, |
| 43 |
ze_module_handle_t *phModules, |
| 44 |
ze_module_build_log_handle_t *phLinkLog); |
| 45 |
|
| 46 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 47 |
zeModuleGetPropertiesTracing(ze_module_handle_t hModule, |
| 48 |
ze_module_properties_t *pModuleProperties); |
| 49 |
|
| 50 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 51 |
zeKernelCreateTracing(ze_module_handle_t hModule, |
| 52 |
const ze_kernel_desc_t *desc, |
| 53 |
ze_kernel_handle_t *phFunction); |
| 54 |
|
| 55 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 56 |
zeKernelDestroyTracing(ze_kernel_handle_t hKernel); |
| 57 |
|
| 58 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 59 |
zeModuleGetFunctionPointerTracing(ze_module_handle_t hModule, |
| 60 |
const char *pKernelName, |
| 61 |
void **pfnFunction); |
| 62 |
|
| 63 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 64 |
zeKernelSetGroupSizeTracing(ze_kernel_handle_t hKernel, |
| 65 |
uint32_t groupSizeX, |
| 66 |
uint32_t groupSizeY, |
| 67 |
uint32_t groupSizeZ); |
| 68 |
|
| 69 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 70 |
zeKernelSuggestGroupSizeTracing(ze_kernel_handle_t hKernel, |
| 71 |
uint32_t globalSizeX, |
| 72 |
uint32_t globalSizeY, |
| 73 |
uint32_t globalSizeZ, |
| 74 |
uint32_t *groupSizeX, |
| 75 |
uint32_t *groupSizeY, |
| 76 |
uint32_t *groupSizeZ); |
| 77 |
|
| 78 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 79 |
zeKernelSetArgumentValueTracing(ze_kernel_handle_t hKernel, |
| 80 |
uint32_t argIndex, |
| 81 |
size_t argSize, |
| 82 |
const void *pArgValue); |
| 83 |
|
| 84 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 85 |
zeKernelGetPropertiesTracing(ze_kernel_handle_t hKernel, |
| 86 |
ze_kernel_properties_t *pKernelProperties); |
| 87 |
|
| 88 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 89 |
zeCommandListAppendLaunchKernelTracing(ze_command_list_handle_t hCommandList, |
| 90 |
ze_kernel_handle_t hKernel, |
| 91 |
const ze_group_count_t *pLaunchFuncArgs, |
| 92 |
ze_event_handle_t hSignalEvent, |
| 93 |
uint32_t numWaitEvents, |
| 94 |
ze_event_handle_t *phWaitEvents); |
| 95 |
|
| 96 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 97 |
zeCommandListAppendLaunchKernelIndirectTracing(ze_command_list_handle_t hCommandList, |
| 98 |
ze_kernel_handle_t hKernel, |
| 99 |
const ze_group_count_t *pLaunchArgumentsBuffer, |
| 100 |
ze_event_handle_t hSignalEvent, |
| 101 |
uint32_t numWaitEvents, |
| 102 |
ze_event_handle_t *phWaitEvents); |
| 103 |
|
| 104 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 105 |
zeCommandListAppendLaunchMultipleKernelsIndirectTracing(ze_command_list_handle_t hCommandList, |
| 106 |
uint32_t numKernels, |
| 107 |
ze_kernel_handle_t *phKernels, |
| 108 |
const uint32_t *pCountBuffer, |
| 109 |
const ze_group_count_t *pLaunchArgumentsBuffer, |
| 110 |
ze_event_handle_t hSignalEvent, |
| 111 |
uint32_t numWaitEvents, |
| 112 |
ze_event_handle_t *phWaitEvents); |
| 113 |
|
| 114 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 115 |
zeCommandListAppendLaunchCooperativeKernelTracing(ze_command_list_handle_t hCommandList, |
| 116 |
ze_kernel_handle_t hKernel, |
| 117 |
const ze_group_count_t *pLaunchFuncArgs, |
| 118 |
ze_event_handle_t hSignalEvent, |
| 119 |
uint32_t numWaitEvents, |
| 120 |
ze_event_handle_t *phWaitEvents); |
| 121 |
|
| 122 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 123 |
zeModuleGetKernelNamesTracing(ze_module_handle_t hModule, |
| 124 |
uint32_t *pCount, |
| 125 |
const char **pNames); |
| 126 |
|
| 127 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 128 |
zeKernelSuggestMaxCooperativeGroupCountTracing(ze_kernel_handle_t hKernel, |
| 129 |
uint32_t *totalGroupCount); |
| 130 |
|
| 131 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 132 |
zeKernelGetIndirectAccessTracing(ze_kernel_handle_t hKernel, |
| 133 |
ze_kernel_indirect_access_flags_t *pFlags); |
| 134 |
|
| 135 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 136 |
zeKernelGetNameTracing(ze_kernel_handle_t hKernel, |
| 137 |
size_t *pSize, |
| 138 |
char *pName); |
| 139 |
|
| 140 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 141 |
zeKernelGetSourceAttributesTracing(ze_kernel_handle_t hKernel, |
| 142 |
uint32_t *pSize, |
| 143 |
char **pString); |
| 144 |
|
| 145 |
ZE_APIEXPORT ze_result_t ZE_APICALL |
| 146 |
zeKernelSetIndirectAccessTracing(ze_kernel_handle_t hKernel, |
| 147 |
ze_kernel_indirect_access_flags_t flags); |
| 148 |
} |