PARALUTION  1.0.0
PARALUTION
mic_utils.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_MIC_MIC_UTILS_HPP_
2 #define PARALUTION_MIC_MIC_UTILS_HPP_
3 
4 #define MIC_ALLOC alloc_if(1)
5 #define MIC_FREE free_if(1)
6 #define MIC_RETAIN free_if(0)
7 #define MIC_REUSE alloc_if(0)
8 
9 namespace paralution {
10 
11 template <typename ValueType>
12 void copy_to_mic(const int mic_dev, const ValueType *src, ValueType *dst, const int size);
13 
14 template <typename ValueType>
15 void copy_to_host(const int mic_dev, const ValueType *src, ValueType *dst, const int size);
16 
17 template <typename ValueType>
18 void copy_mic_mic(const int mic_dev, const ValueType *src, ValueType *dst, const int size);
19 
20 
21 };
22 
23 
24 #endif // PARALUTION_MIC_MIC_UTILS_HPP_
Definition: backend_manager.cpp:43
void copy_to_host(const int mic_dev, const ValueType *src, ValueType *dst, const int size)
Definition: mic_utils.cpp:26
void copy_to_mic(const int mic_dev, const ValueType *src, ValueType *dst, const int size)
Definition: mic_utils.cpp:14
void copy_mic_mic(const int mic_dev, const ValueType *src, ValueType *dst, const int size)
Definition: mic_utils.cpp:39