Stan Math Library  2.20.0
reverse mode automatic differentiation
Classes | Namespaces | Macros | Functions | Variables
opencl_context.hpp File Reference

Initialization for OpenCL: More...

#include <stan/math/opencl/constants.hpp>
#include <stan/math/opencl/err/check_opencl.hpp>
#include <stan/math/prim/scal/err/system_error.hpp>
#include <CL/cl.hpp>
#include <string>
#include <iostream>
#include <fstream>
#include <map>
#include <vector>
#include <cmath>
#include <cerrno>

Go to the source code of this file.

Classes

class  stan::math::opencl_context_base
 The opencl_context_base class represents an OpenCL context in the standard Meyers singleton design pattern. More...
 
struct  stan::math::opencl_context_base::tuning_struct
 
class  stan::math::opencl_context
 The API to access the methods and values in opencl_context_base. More...
 

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 
 stan::math::opencl
 

Macros

#define DEVICE_FILTER   CL_DEVICE_TYPE_ALL
 

Functions

template<int N>
cl::size_t< N > stan::math::opencl::to_size_t (const size_t(&values)[N])
 A helper function to convert an array to a cl::size_t<N>. More...
 
template<>
cl::size_t< 3 > stan::math::opencl::to_size_t (const size_t(&values)[3])
 A template specialization of the helper function to convert an array to a cl::size_t<3>. More...
 

Variables

static opencl_context stan::math::opencl_context
 

Detailed Description

Initialization for OpenCL:

  1. create context
  2. Find OpenCL platforms and devices available
  3. set up command queue
  4. set architecture dependent kernel parameters

Definition in file opencl_context.hpp.

Macro Definition Documentation

◆ DEVICE_FILTER

#define DEVICE_FILTER   CL_DEVICE_TYPE_ALL

Definition at line 5 of file opencl_context.hpp.


     [ Stan Home Page ] © 2011–2018, Stan Development Team.