OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
l0::L0Module Class Reference

#include <L0Mgr.h>

Public Member Functions

std::shared_ptr< L0Kernelcreate_kernel (const char *name, uint32_t x, uint32_t y, uint32_t z) const
 

Detailed Description

Definition at line 82 of file L0Mgr.h.

Member Function Documentation

std::shared_ptr< L0Kernel > l0::L0Module::create_kernel ( const char *  name,
uint32_t  x,
uint32_t  y,
uint32_t  z 
) const

Definition at line 231 of file L0Mgr.cpp.

References L0_SAFE_CALL, and setup::name.

234  {
235  ze_kernel_desc_t desc{
236  .stype = ZE_STRUCTURE_TYPE_KERNEL_DESC,
237  .pNext = nullptr,
238  .flags = 0,
239  .pKernelName = name,
240  };
241  ze_kernel_handle_t handle;
242  L0_SAFE_CALL(zeKernelCreate(this->handle_, &desc, &handle));
243  return std::make_shared<L0Kernel>(handle, x, y, z);
244 }
#define L0_SAFE_CALL(call)
Definition: Utils.h:19
string name
Definition: setup.in.py:72

The documentation for this class was generated from the following files: