t2s/tests/performance/util/l0_rt_helpers.h
inline ze_kernel_handle_t createKernel(ze_context_handle_t hContext, ze_device_handle_t hDevice,
                                       const uint8_t* krn, size_t krn_size, const char* kname)
{
    ze_kernel_desc_t kernelDesc = {ZE_STRUCTURE_TYPE_KERNEL_DESC, nullptr, 0, kname};
    ze_kernel_handle_t hKernel;
    L0_SAFE_CALL(zeKernelCreate(createModule(hContext, hDevice, krn, krn_size), &kernelDesc, &hKernel));
    //fprintf(stderr, "create kernel \"%s\"\n", kname);
    return hKernel;
}
// createKernel overload, which takes binary (or SPIRV) buffer (krn)
createKernel overload, which takes binary (or SPIRV) buffer (krn)
createKernel overload which takes binary ( or SPIRV ) buffer ( krn )
inline ze_kernel_handle_t createKernel(ze_context_handle_t hContext, ze_device_handle_t hDevice,
                                       const uint8_t* krn, size_t krn_size, const char* kname)
{
    ze_kernel_desc_t kernelDesc = {ZE_STRUCTURE_TYPE_KERNEL_DESC, nullptr, 0, kname};
    ze_kernel_handle_t hKernel;
    L0_SAFE_CALL(zeKernelCreate(createModule(hContext, hDevice, krn, krn_size), &kernelDesc, &hKernel));
    return hKernel;
}
inline ze_kernel_handle_t createKernel ( ze_context_handle_t hContext , ze_device_handle_t hDevice , const uint8_t * krn , size_t krn_size , const char * kname ) { ze_kernel_desc_t kernelDesc = { ZE_STRUCTURE_TYPE_KERNEL_DESC , nullptr , 0 , kname } ; ze_kernel_handle_t hKernel ; L0_SAFE_CALL ( zeKernelCreate ( createModule ( hContext , hDevice , krn , krn_size ) , & kernelDesc , & hKernel ) ) ; return hKernel ; }
createKernel overload, which takes binary (or SPIRV) buffer (krn)
createKernel overload which takes binary ( or SPIRV ) buffer ( krn )
//fprintf(stderr, "create kernel \"%s\"\n", kname);