1 #ifndef PARALUTION_BACKEND_OCL_HPP_
2 #define PARALUTION_BACKEND_OCL_HPP_
4 #include "../backend_manager.hpp"
6 #if defined(__APPLE__) && defined(__MACH__)
14 template <
typename ValueType>
15 class AcceleratorVector;
16 template <
typename ValueType>
17 class AcceleratorMatrix;
18 template <
typename ValueType>
52 template <
typename ValueType>
64 template <
typename ValueType>
68 template <
typename ValueType>
70 const unsigned int matrix_format);
75 #endif // PARALUTION_BACKEND_OCL_HPP_
AcceleratorVector< ValueType > * _paralution_init_base_ocl_vector(const struct Paralution_Backend_Descriptor backend_descriptor)
Build (and return) an OpenCL vector.
Definition: backend_ocl.cpp:710
cl_program OCL_program_sp
Definition: backend_ocl.hpp:32
cl_device_id ** OCL_devices
Definition: backend_ocl.hpp:44
void paralution_stop_ocl(void)
Release the OpenCL resources.
Definition: backend_ocl.cpp:495
cl_uint * OCL_numDevices
Definition: backend_ocl.hpp:43
cl_kernel * OCL_kernels
Definition: backend_ocl.hpp:47
Definition: backend_manager.hpp:10
Backend descriptor - keeps information about the hardware - OpenMP (threads); CUDA (blocksizes...
Definition: backend_manager.hpp:19
cl_context OCL_context
Definition: backend_ocl.hpp:26
cl_program OCL_program_dp
Definition: backend_ocl.hpp:34
AcceleratorMatrix< ValueType > * _paralution_init_base_ocl_matrix(const struct Paralution_Backend_Descriptor backend_descriptor, const unsigned int matrix_format)
Build (and return) an OpenCL matrix.
Definition: backend_ocl.cpp:668
bool paralution_init_ocl(void)
Initialize OpenCL.
Definition: backend_ocl.cpp:187
cl_program OCL_program_int
Definition: backend_ocl.hpp:36
cl_kernel paralution_get_kernel_ocl(int)
Get OpenCL kernel.
Definition: backend_manager.hpp:12
cl_platform_id * OCL_platforms
Definition: backend_ocl.hpp:40
Definition: backend_ocl.hpp:23
Definition: backend_manager.cpp:43
void paralution_info_ocl(const struct Paralution_Backend_Descriptor backend_descriptor)
Print information about the GPUs in the systems.
Definition: backend_ocl.cpp:581
cl_uint OCL_numPlatforms
Definition: backend_ocl.hpp:39
cl_command_queue OCL_cmdQueue
Definition: backend_ocl.hpp:29