nngn
Loading...
Searching...
No Matches
anonymous_namespace{lua_compute.cpp} Namespace Reference

Functions

template<typename T >
T from_table_array (nngn::lua::table_view t)
 
void invalid_type (Type t)
 
bool check_size (const std::byte *p, lua_Integer n, std::span< const std::byte > s)
 
bool check_size (lua_Integer n, const bvec &v)
 
auto elem_size (Type t)
 
template<typename T >
auto read_table (const auto &t, lua_Integer i, lua_Integer n, std::byte *p)
 
template<typename T >
auto write_table (nngn::lua::table_view t, lua_Integer i, lua_Integer n, const T *p)
 
template<typename T >
auto write_table (nngn::lua::table_view t, lua_Integer i, lua_Integer n, const std::byte *p)
 
 map (Type t, auto &&sf, auto &&vf, auto &&of)
 
 map_vector (Type t, auto &&def, auto &&f)
 
bool to_bytes (Type type, nngn::lua::table_view t, bvec *v)
 
auto get_limits (Compute &c, nngn::lua::state_view lua)
 
auto create_vector (lua_Integer n)
 
auto vector_size (const bvec &v)
 
auto read_vector (bvec &v, lua_Integer off, lua_Integer n, Type type, nngn::lua::state_view lua)
 
void zero_vector (bvec *v, lua_Integer off, lua_Integer n)
 
bool fill_vector (bvec *v, lua_Integer off, lua_Integer n, Type type, nngn::lua::table_view t)
 
void copy_vector (bvec *dst, const bvec &src, lua_Integer dst_off, lua_Integer src_off, lua_Integer n)
 
template<typename T >
auto write_scalar_type (const auto &t, lua_Integer i, std::byte *p)
 
template<typename T >
auto write_vector_type (nngn::lua::table_view t, lua_Integer i, std::byte *p)
 
bool write_vector (bvec *v, lua_Integer off, nngn::lua::table_view t)
 
auto read_sizes (nngn::lua::table_view t)
 
auto read_events (const Compute &c, Compute::Events *events, std::span< const Compute::Type > types, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt)
 
void write_events (std::span< const Compute::Event *const > events, std::optional< nngn::lua::table_view > events_opt)
 
auto opt (const Compute::Handle &h)
 
auto create_buffer (Compute &c, Compute::MemFlag flags, Type type, lua_Integer n, const bvec *ov)
 
bool read_buffer (const Compute &c, lua_Integer b, Type type, lua_Integer n, bvec *v)
 
bool fill_buffer (const Compute &c, lua_Integer b, lua_Integer off, lua_Integer n, Type type, nngn::lua::table_view pattern_t, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt)
 
bool write_buffer (const Compute &c, lua_Integer b, lua_Integer off, lua_Integer n, Type type, const bvec &v)
 
auto create_image (Compute &c, Type type, lua_Integer w, lua_Integer h, Compute::MemFlag flags, const bvec *ov)
 
auto read_image (const Compute &c, lua_Integer i, lua_Integer w, lua_Integer h, Type type, bvec *v)
 
bool fill_image (const Compute &c, lua_Integer i, lua_Integer w, lua_Integer h, Type type, nngn::lua::table_view t)
 
auto create_sampler (Compute &c)
 
auto create_program (Compute &c, std::string_view src, const char *opts)
 
std::optional< nngn::lua::table_viewprof_info (const Compute &c, Compute::ProfInfo info, std::vector< const void * > events, nngn::lua::state_view lua)
 
auto wait (const Compute &c, std::vector< const void * > events)
 
template<auto Compute::* f>
bool release (Compute &c, lua_Integer id)
 
bool release_events (const Compute &c, std::vector< const void * > events)
 
std::vector< std::size_t > data_size (nngn::lua::table_view t)
 
auto read_data (nngn::lua::table_view t, auto *data_v)
 
auto create_kernel (Compute &c, lua_Integer program, const char *func, nngn::lua::table_view data, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt)
 
bool execute_kernel (Compute &c, lua_Integer kernel, Compute::ExecFlag flags, nngn::lua::table_view global_size, nngn::lua::table_view local_size, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt)
 
bool execute (Compute &c, lua_Integer program, const char *func, Compute::ExecFlag flags, nngn::lua::table_view global_size, nngn::lua::table_view local_size, nngn::lua::table_view data, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt)
 
std::optional< Compute::OpenCLParameters > opencl_params (nngn::lua::table_view t)
 
void register_compute (nngn::lua::table_view t)
 

Function Documentation

◆ check_size() [1/2]

bool anonymous_namespace{lua_compute.cpp}::check_size ( const std::byte *  p,
lua_Integer  n,
std::span< const std::byte >  s 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_size() [2/2]

bool anonymous_namespace{lua_compute.cpp}::check_size ( lua_Integer  n,
const bvec v 
)
Here is the call graph for this function:

◆ copy_vector()

void anonymous_namespace{lua_compute.cpp}::copy_vector ( bvec dst,
const bvec src,
lua_Integer  dst_off,
lua_Integer  src_off,
lua_Integer  n 
)
Here is the caller graph for this function:

◆ create_buffer()

auto anonymous_namespace{lua_compute.cpp}::create_buffer ( Compute c,
Compute::MemFlag  flags,
Type  type,
lua_Integer  n,
const bvec ov 
)
Here is the call graph for this function:

◆ create_image()

auto anonymous_namespace{lua_compute.cpp}::create_image ( Compute c,
Type  type,
lua_Integer  w,
lua_Integer  h,
Compute::MemFlag  flags,
const bvec ov 
)
Here is the call graph for this function:

◆ create_kernel()

auto anonymous_namespace{lua_compute.cpp}::create_kernel ( Compute c,
lua_Integer  program,
const char *  func,
nngn::lua::table_view  data,
std::optional< nngn::lua::value_view wait_opt,
std::optional< nngn::lua::table_view events_opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_program()

auto anonymous_namespace{lua_compute.cpp}::create_program ( Compute c,
std::string_view  src,
const char *  opts 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_sampler()

auto anonymous_namespace{lua_compute.cpp}::create_sampler ( Compute c)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_vector()

auto anonymous_namespace{lua_compute.cpp}::create_vector ( lua_Integer  n)
Here is the caller graph for this function:

◆ data_size()

std::vector< std::size_t > anonymous_namespace{lua_compute.cpp}::data_size ( nngn::lua::table_view  t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ elem_size()

auto anonymous_namespace{lua_compute.cpp}::elem_size ( Type  t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute()

bool anonymous_namespace{lua_compute.cpp}::execute ( Compute c,
lua_Integer  program,
const char *  func,
Compute::ExecFlag  flags,
nngn::lua::table_view  global_size,
nngn::lua::table_view  local_size,
nngn::lua::table_view  data,
std::optional< nngn::lua::value_view wait_opt,
std::optional< nngn::lua::table_view events_opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute_kernel()

bool anonymous_namespace{lua_compute.cpp}::execute_kernel ( Compute c,
lua_Integer  kernel,
Compute::ExecFlag  flags,
nngn::lua::table_view  global_size,
nngn::lua::table_view  local_size,
std::optional< nngn::lua::value_view wait_opt,
std::optional< nngn::lua::table_view events_opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_buffer()

bool anonymous_namespace{lua_compute.cpp}::fill_buffer ( const Compute c,
lua_Integer  b,
lua_Integer  off,
lua_Integer  n,
Type  type,
nngn::lua::table_view  pattern_t,
std::optional< nngn::lua::value_view wait_opt,
std::optional< nngn::lua::table_view events_opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_image()

bool anonymous_namespace{lua_compute.cpp}::fill_image ( const Compute c,
lua_Integer  i,
lua_Integer  w,
lua_Integer  h,
Type  type,
nngn::lua::table_view  t 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_vector()

bool anonymous_namespace{lua_compute.cpp}::fill_vector ( bvec v,
lua_Integer  off,
lua_Integer  n,
Type  type,
nngn::lua::table_view  t 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ from_table_array()

template<typename T >
T anonymous_namespace{lua_compute.cpp}::from_table_array ( nngn::lua::table_view  t)
Here is the call graph for this function:

◆ get_limits()

auto anonymous_namespace{lua_compute.cpp}::get_limits ( Compute c,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ invalid_type()

void anonymous_namespace{lua_compute.cpp}::invalid_type ( Type  t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ map()

anonymous_namespace{lua_compute.cpp}::map ( Type  t,
auto &&  sf,
auto &&  vf,
auto &&  of 
)

◆ map_vector()

anonymous_namespace{lua_compute.cpp}::map_vector ( Type  t,
auto &&  def,
auto &&  f 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ opencl_params()

std::optional< Compute::OpenCLParameters > anonymous_namespace{lua_compute.cpp}::opencl_params ( nngn::lua::table_view  t)
Here is the call graph for this function:

◆ opt()

auto anonymous_namespace{lua_compute.cpp}::opt ( const Compute::Handle &  h)
Here is the caller graph for this function:

◆ prof_info()

std::optional< nngn::lua::table_view > anonymous_namespace{lua_compute.cpp}::prof_info ( const Compute c,
Compute::ProfInfo  info,
std::vector< const void * >  events,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_buffer()

bool anonymous_namespace{lua_compute.cpp}::read_buffer ( const Compute c,
lua_Integer  b,
Type  type,
lua_Integer  n,
bvec v 
)
Here is the call graph for this function:

◆ read_data()

auto anonymous_namespace{lua_compute.cpp}::read_data ( nngn::lua::table_view  t,
auto *  data_v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_events()

auto anonymous_namespace{lua_compute.cpp}::read_events ( const Compute c,
Compute::Events *  events,
std::span< const Compute::Type >  types,
std::optional< nngn::lua::value_view wait_opt,
std::optional< nngn::lua::table_view events_opt 
)
Here is the caller graph for this function:

◆ read_image()

auto anonymous_namespace{lua_compute.cpp}::read_image ( const Compute c,
lua_Integer  i,
lua_Integer  w,
lua_Integer  h,
Type  type,
bvec v 
)
Here is the call graph for this function:

◆ read_sizes()

auto anonymous_namespace{lua_compute.cpp}::read_sizes ( nngn::lua::table_view  t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_table()

template<typename T >
auto anonymous_namespace{lua_compute.cpp}::read_table ( const auto &  t,
lua_Integer  i,
lua_Integer  n,
std::byte *  p 
)

◆ read_vector()

auto anonymous_namespace{lua_compute.cpp}::read_vector ( bvec v,
lua_Integer  off,
lua_Integer  n,
Type  type,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ register_compute()

void anonymous_namespace{lua_compute.cpp}::register_compute ( nngn::lua::table_view  t)
Here is the call graph for this function:

◆ release()

template<auto Compute::* f>
bool anonymous_namespace{lua_compute.cpp}::release ( Compute c,
lua_Integer  id 
)
Here is the call graph for this function:

◆ release_events()

bool anonymous_namespace{lua_compute.cpp}::release_events ( const Compute c,
std::vector< const void * >  events 
)
Here is the caller graph for this function:

◆ to_bytes()

bool anonymous_namespace{lua_compute.cpp}::to_bytes ( Type  type,
nngn::lua::table_view  t,
bvec v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vector_size()

auto anonymous_namespace{lua_compute.cpp}::vector_size ( const bvec v)
Here is the caller graph for this function:

◆ wait()

auto anonymous_namespace{lua_compute.cpp}::wait ( const Compute c,
std::vector< const void * >  events 
)
Here is the caller graph for this function:

◆ write_buffer()

bool anonymous_namespace{lua_compute.cpp}::write_buffer ( const Compute c,
lua_Integer  b,
lua_Integer  off,
lua_Integer  n,
Type  type,
const bvec v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_events()

void anonymous_namespace{lua_compute.cpp}::write_events ( std::span< const Compute::Event *const >  events,
std::optional< nngn::lua::table_view events_opt 
)
Here is the caller graph for this function:

◆ write_scalar_type()

template<typename T >
auto anonymous_namespace{lua_compute.cpp}::write_scalar_type ( const auto &  t,
lua_Integer  i,
std::byte *  p 
)

◆ write_table() [1/2]

template<typename T >
auto anonymous_namespace{lua_compute.cpp}::write_table ( nngn::lua::table_view  t,
lua_Integer  i,
lua_Integer  n,
const std::byte *  p 
)
Here is the call graph for this function:

◆ write_table() [2/2]

template<typename T >
auto anonymous_namespace{lua_compute.cpp}::write_table ( nngn::lua::table_view  t,
lua_Integer  i,
lua_Integer  n,
const T p 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_vector()

bool anonymous_namespace{lua_compute.cpp}::write_vector ( bvec v,
lua_Integer  off,
nngn::lua::table_view  t 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_vector_type()

template<typename T >
auto anonymous_namespace{lua_compute.cpp}::write_vector_type ( nngn::lua::table_view  t,
lua_Integer  i,
std::byte *  p 
)
Here is the call graph for this function:

◆ zero_vector()

void anonymous_namespace{lua_compute.cpp}::zero_vector ( bvec v,
lua_Integer  off,
lua_Integer  n 
)
Here is the caller graph for this function: