OmniSciDB  f17484ade4
 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 83 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{
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:20
string name

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