Go to the source code of this file.
#define VSMC_DEFINE_OPENCL_CONFIGURE_KERNEL |
Value:CLConfigure &configure () {return configure_;} \
const CLConfigure &configure () const {return configure_;} \
::cl::Kernel &kernel () {return kernel_;} \
const ::cl::Kernel &kernel () const {return kernel_;} \
const std::string &kernel_name () const {return kernel_name_;}
Definition at line 136 of file backend_cl.hpp.
#define VSMC_DEFINE_OPENCL_COPY |
( |
|
Name | ) |
|
Value:Name () : build_id_(-1) {} \
Name (const Name<T, PlaceHolder> &) = default; \
Name<T, PlaceHolder> &operator= (const Name<T, PlaceHolder> &) = default; \
virtual ~Name () {}
Definition at line 77 of file backend_cl.hpp.
#define VSMC_DEFINE_OPENCL_MEMBER_DATA |
Value:CLConfigure configure_; \
int build_id_; \
::cl::Kernel kernel_; \
std::string kernel_name_
Definition at line 156 of file backend_cl.hpp.
#define VSMC_DEFINE_OPENCL_MOVE |
( |
|
Name | ) |
|
Value:Name (Name<T, PlaceHolder> &&) = default; \
Name<T, PlaceHolder> &operator= (Name<T, PlaceHolder> &&) = default;
Definition at line 84 of file backend_cl.hpp.
#define VSMC_DEFINE_OPENCL_SET_KERNEL |
Value:if (kname.empty()) { \
kernel_name_.clear(); \
return; \
} \
if (build_id_ != particle.value().build_id() || kernel_name_ != kname) { \
build_id_ = particle.value().build_id(); \
kernel_name_ = kname; \
kernel_ = particle.value().create_kernel(kernel_name_); \
configure_.local_size(particle.size(), \
kernel_, particle.value().manager().device()); \
} \
Definition at line 143 of file backend_cl.hpp.
#define VSMC_RUNTIME_ASSERT_OPENCL_BACKEND_CL_BUILD |
( |
|
func | ) |
|
Value:
("**StateCL::"#func"** CAN ONLY BE CALLED AFTER true " \
"**StateCL::build**"));
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition at line 59 of file backend_cl.hpp.
#define VSMC_RUNTIME_ASSERT_OPENCL_BACKEND_CL_COPY_SIZE_MISMATCH |
Value:
("**StateCL::copy** SIZE MISMATCH"))
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition at line 67 of file backend_cl.hpp.
#define VSMC_RUNTIME_ASSERT_OPENCL_BACKEND_CL_STATE_SIZE |
( |
|
state_size | ) |
VSMC_RUNTIME_ASSERT((state_size >= 1), ("STATE SIZE IS LESS THAN 1")) |
#define VSMC_RUNTIME_ASSERT_OPENCL_BACKEND_CL_UNPACK_SIZE |
( |
|
psize, |
|
|
|
dim |
|
) |
| |
Value:
("**StateCL::state_unpack** INPUT PACK SIZE TOO SMALL"))
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition at line 71 of file backend_cl.hpp.
#define VSMC_STATIC_ASSERT_OPENCL_BACKEND_CL_DYNAMIC_STATE_SIZE_RESIZE |
( |
|
Dim | ) |
|
Value:
USE_METHOD_resize_state_WITH_A_FIXED_SIZE_StateCL_OBJECT)
Used to specify a dimension template parameter is dynamic.
#define VSMC_STATIC_ASSERT(cond, msg)
Definition at line 46 of file backend_cl.hpp.
#define VSMC_STATIC_ASSERT_OPENCL_BACKEND_CL_STATE_CL_FP_TYPE |
( |
|
type | ) |
|
Value:
|| cxx11::is_same<type, ::cl_double>::value), \
USE_StateCL_WITH_A_FP_TYPE_OTHER_THAN_cl_float_AND_cl_double)
#define VSMC_STATIC_ASSERT(cond, msg)
Definition at line 54 of file backend_cl.hpp.
#define VSMC_STATIC_ASSERT_OPENCL_BACKEND_CL_STATE_CL_TYPE |
( |
|
derived, |
|
|
|
user |
|
) |
| |
Value:
USE_##user##_WITH_A_STATE_TYPE_NOT_DERIVED_FROM_StateCL)
#define VSMC_STATIC_ASSERT(cond, msg)
Definition at line 50 of file backend_cl.hpp.