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

Classes

class  Device
 
class  OpenCLBackend
 
class  Platform
 

Typedefs

using TemporaryBuffers = nngn::scoped< std::vector< cl_mem >, >
 
using TemporaryKernel = nngn::scoped< cl_kernel, >
 
using TemporaryEvents = nngn::scoped< std::vector< cl_event >, >
 

Functions

auto cl_strerror (cl_int e)
 
cl_int check_result (const char *func_name, cl_int result)
 
cl_event * to_cl_events (nngn::Compute::Event *const *e)
 
cl_event * to_cl_events (const nngn::Compute::Event *const *e)
 
nngn::Compute::Event *const * from_cl_event (cl_event *e)
 
std::optional< nngn::Compute::Versionparse_version (std::string_view s)
 
bool version_ge (nngn::Compute::Version lhs, nngn::Compute::Version rhs)
 
template<typename T >
T::const_pointer get_obj (const T &v, const nngn::Compute::Handle &h)
 
template<typename T >
T::pointer get_obj (T &v, const nngn::Compute::Handle &h)
 
template<typename T , typename F , typename... P>
auto enumerate (const char *fn, F f, T *v, const P &...args)
 
template<typename T >
u32 insert_at_first_free (std::vector< T > *v, T t)
 
void release (cl_program x)
 
void release (cl_kernel x)
 
void release (cl_sampler x)
 
void release (cl_mem x)
 
void release (cl_command_queue x)
 
void release (cl_context x)
 

Typedef Documentation

◆ TemporaryBuffers

typedef nngn::scoped< std::vector< cl_mem >, > anonymous_namespace{opencl.cpp}::TemporaryBuffers

◆ TemporaryEvents

typedef nngn::scoped< std::vector< cl_event >, > anonymous_namespace{opencl.cpp}::TemporaryEvents

◆ TemporaryKernel

typedef nngn::scoped< cl_kernel, > anonymous_namespace{opencl.cpp}::TemporaryKernel

Function Documentation

◆ check_result()

cl_int anonymous_namespace{opencl.cpp}::check_result ( const char *  func_name,
cl_int  result 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cl_strerror()

auto anonymous_namespace{opencl.cpp}::cl_strerror ( cl_int  e)
Here is the caller graph for this function:

◆ enumerate()

template<typename T , typename F , typename... P>
auto anonymous_namespace{opencl.cpp}::enumerate ( const char *  fn,
F  f,
T v,
const P &...  args 
)
Here is the call graph for this function:

◆ from_cl_event()

nngn::Compute::Event *const * anonymous_namespace{opencl.cpp}::from_cl_event ( cl_event *  e)
Here is the caller graph for this function:

◆ get_obj() [1/2]

template<typename T >
T::const_pointer anonymous_namespace{opencl.cpp}::get_obj ( const T v,
const nngn::Compute::Handle h 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_obj() [2/2]

template<typename T >
T::pointer anonymous_namespace{opencl.cpp}::get_obj ( T v,
const nngn::Compute::Handle h 
)
Here is the call graph for this function:

◆ insert_at_first_free()

template<typename T >
u32 anonymous_namespace{opencl.cpp}::insert_at_first_free ( std::vector< T > *  v,
T  t 
)
Here is the caller graph for this function:

◆ parse_version()

std::optional< nngn::Compute::Version > anonymous_namespace{opencl.cpp}::parse_version ( std::string_view  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ release() [1/6]

void anonymous_namespace{opencl.cpp}::release ( cl_command_queue  x)

◆ release() [2/6]

void anonymous_namespace{opencl.cpp}::release ( cl_context  x)

◆ release() [3/6]

void anonymous_namespace{opencl.cpp}::release ( cl_kernel  x)

◆ release() [4/6]

void anonymous_namespace{opencl.cpp}::release ( cl_mem  x)

◆ release() [5/6]

void anonymous_namespace{opencl.cpp}::release ( cl_program  x)

◆ release() [6/6]

void anonymous_namespace{opencl.cpp}::release ( cl_sampler  x)

◆ to_cl_events() [1/2]

cl_event * anonymous_namespace{opencl.cpp}::to_cl_events ( const nngn::Compute::Event *const *  e)
Here is the call graph for this function:

◆ to_cl_events() [2/2]

cl_event * anonymous_namespace{opencl.cpp}::to_cl_events ( nngn::Compute::Event *const *  e)
Here is the caller graph for this function:

◆ version_ge()

bool anonymous_namespace{opencl.cpp}::version_ge ( nngn::Compute::Version  lhs,
nngn::Compute::Version  rhs 
)
Here is the caller graph for this function: