![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
The opencl_context_base
class represents an OpenCL context in the standard Meyers singleton design pattern.
More...
#include <opencl_context.hpp>
Classes | |
struct | tuning_struct |
Protected Types | |
typedef std::map< const char *, int > | map_base_opts |
Protected Member Functions | |
opencl_context_base (opencl_context_base const &)=delete | |
void | operator= (opencl_context_base const &)=delete |
Static Protected Member Functions | |
static opencl_context_base & | getInstance () |
Protected Attributes | |
cl::Context | context_ |
cl::CommandQueue | command_queue_ |
std::vector< cl::Platform > | platforms_ |
cl::Platform | platform_ |
std::string | platform_name_ |
std::vector< cl::Device > | devices_ |
cl::Device | device_ |
std::string | device_name_ |
size_t | max_thread_block_size_ |
map_base_opts | base_opts_ |
struct stan::math::opencl_context_base::tuning_struct | tuning_opts_ |
Friends | |
class | opencl_context |
The opencl_context_base
class represents an OpenCL context in the standard Meyers singleton design pattern.
See the OpenCL specification glossary for a list of terms: https://www.khronos.org/registry/OpenCL/specs/opencl-1.2.pdf. The context includes the set of devices available on the host, command queues, manages kernels.
This is designed so there's only one instance running on the host.
Some design decisions that may need to be addressed later:
Definition at line 81 of file opencl_context.hpp.
|
protected |
Definition at line 176 of file opencl_context.hpp.
|
protecteddelete |
|
inlinestaticprotected |
Definition at line 203 of file opencl_context.hpp.
|
protecteddelete |
|
friend |
Definition at line 82 of file opencl_context.hpp.
|
protected |
Definition at line 178 of file opencl_context.hpp.
|
protected |
Definition at line 165 of file opencl_context.hpp.
|
protected |
Definition at line 164 of file opencl_context.hpp.
|
protected |
Definition at line 170 of file opencl_context.hpp.
|
protected |
Definition at line 171 of file opencl_context.hpp.
|
protected |
Definition at line 169 of file opencl_context.hpp.
|
protected |
Definition at line 172 of file opencl_context.hpp.
|
protected |
Definition at line 167 of file opencl_context.hpp.
|
protected |
Definition at line 168 of file opencl_context.hpp.
|
protected |
Definition at line 166 of file opencl_context.hpp.
|
protected |