PARALUTION  1.0.0
PARALUTION
gpu_allocate_free.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_GPU_ALLOCATE_FREE_HPP_
2 #define PARALUTION_GPU_ALLOCATE_FREE_HPP_
3 
4 #include <iostream>
5 
6 namespace paralution {
7 
8 template <typename DataType>
9 void allocate_gpu(const int size, DataType **ptr);
10 
11 template <typename DataType>
12 void free_gpu(DataType **ptr);
13 
14 template <typename DataType>
15 void set_to_zero_gpu(const int blocksize,
16  const int max_threads,
17  const int size, DataType *ptr);
18 
19 template <typename DataType>
20 void set_to_one_gpu(const int blocksize,
21  const int max_threads,
22  const int size, DataType *ptr);
23 
24 
25 }
26 
27 #endif // PARALUTION_GPU_ALLOCATE_FREE_HPP_
void set_to_one_gpu(const int blocksize, const int max_threads, const int size, DataType *ptr)
void set_to_zero_gpu(const int blocksize, const int max_threads, const int size, DataType *ptr)
void free_gpu(DataType **ptr)
Definition: backend_manager.cpp:43
void allocate_gpu(const int size, DataType **ptr)