PARALUTION  1.0.0
PARALUTION
backend_gpu.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_BACKEND_GPU_HPP_
2 #define PARALUTION_BACKEND_GPU_HPP_
3 
4 #include "../backend_manager.hpp"
5 
6 #include <iostream>
7 
8 namespace paralution {
9 
10 template <typename ValueType>
11 class AcceleratorVector;
12 template <typename ValueType>
13 class AcceleratorMatrix;
14 template <typename ValueType>
15 class HostMatrix;
16 
18 bool paralution_init_gpu();
20 void paralution_stop_gpu();
21 
23 void paralution_info_gpu(const struct Paralution_Backend_Descriptor);
24 
26 void paralution_gpu_sync(void);
27 
29 template <typename ValueType>
30 AcceleratorVector<ValueType>* _paralution_init_base_gpu_vector(const struct Paralution_Backend_Descriptor backend_descriptor);
31 
33 template <typename ValueType>
34 AcceleratorMatrix<ValueType>* _paralution_init_base_gpu_matrix(const struct Paralution_Backend_Descriptor backend_descriptor,
35  const unsigned int matrix_format);
36 
37 
38 }
39 
40 #endif // PARALUTION_BACKEND_GPU_HPP_
void paralution_stop_gpu()
Release the GPU resources (CUDA, CUBLAS, CUSPARSE)
AcceleratorVector< ValueType > * _paralution_init_base_gpu_vector(const struct Paralution_Backend_Descriptor backend_descriptor)
Build (and return) a vector on GPU.
void paralution_gpu_sync(void)
Sync the device (for async transfers)
void paralution_info_gpu(const struct Paralution_Backend_Descriptor)
Print information about the GPUs in the systems.
Definition: backend_manager.cpp:43
bool paralution_init_gpu()
Initialize a GPU (CUDA, CUBLAS, CUSPARSE)
AcceleratorMatrix< ValueType > * _paralution_init_base_gpu_matrix(const struct Paralution_Backend_Descriptor backend_descriptor, const unsigned int matrix_format)
Build (and return) a matrix on GPU.