1 #ifndef PARALUTION_MIC_MIC_UTILS_HPP_
2 #define PARALUTION_MIC_MIC_UTILS_HPP_
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)
11 template <
typename ValueType>
12 void copy_to_mic(
const int mic_dev,
const ValueType *src, ValueType *dst,
const int size);
14 template <
typename ValueType>
15 void copy_to_host(
const int mic_dev,
const ValueType *src, ValueType *dst,
const int size);
17 template <
typename ValueType>
18 void copy_mic_mic(
const int mic_dev,
const ValueType *src, ValueType *dst,
const int size);
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