Ejemplo n.º 1
0
opencl::opencl_metainfo* singleton_manager::get_opencl_metainfo() {
#   ifdef CPPA_OPENCL
    return lazy_get(s_opencl_metainfo);
#   else
    CPPA_LOGF_ERROR("libcppa was compiled without OpenCL support");
    throw std::logic_error("libcppa was compiled without OpenCL support");
#   endif
}
Ejemplo n.º 2
0
opencl::command_dispatcher* singleton_manager::get_command_dispatcher() {
#   ifdef CPPA_OPENCL
    return lazy_get(s_command_dispatcher);
#   else
    CPPA_LOGF_ERROR("libcppa was compiled without OpenCL support");
    throw std::logic_error("libcppa was compiled without OpenCL support");
#   endif
}