PARALUTION  1.0.0
PARALUTION
mic_vector_kernel.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_MIC_VECTOR_KERNEL_HPP_
2 #define PARALUTION_MIC_VECTOR_KERNEL_HPP_
3 
4 
5 namespace paralution {
6 
7 template <typename ValueType>
8 void dot(const int mic_dev, const ValueType *vec1, const ValueType *vec2, const int size, ValueType &d);
9 
10 template <typename ValueType>
11 void asum(const int mic_dev, const ValueType *vec, const int size, ValueType &d);
12 
13 template <typename ValueType>
14 void amax(const int mic_dev, const ValueType *vec, const int size, ValueType &d, int &index);
15 
16 template <typename ValueType>
17 void norm(const int mic_dev, const ValueType *vec, const int size, ValueType &d);
18 
19 template <typename ValueType>
20 void reduce(const int mic_dev, const ValueType *vec, const int size, ValueType &d);
21 
22 template <typename ValueType>
23 void scaleadd(const int mic_dev, const ValueType *vec1, const ValueType alpha, const int size, ValueType *vec2);
24 
25 template <typename ValueType>
26 void addscale(const int mic_dev, const ValueType *vec1, const ValueType alpha, const int size, ValueType *vec2);
27 
28 template <typename ValueType>
29 void scaleaddscale(const int mic_dev,
30  const ValueType *vec1, const ValueType alpha, const ValueType beta,
31  const int size, ValueType *vec2);
32 
33 template <typename ValueType>
34 void scaleaddscale(const int mic_dev,
35  const ValueType *vec1, const ValueType alpha,
36  const ValueType beta, ValueType *vec2,
37  const int src_offset, const int dst_offset,const int size);
38 
39 template <typename ValueType>
40 void scaleadd2(const int mic_dev,
41  const ValueType *vec1, const ValueType *vec2,
42  const ValueType alpha, const ValueType beta, const ValueType gamma,
43  const int size, ValueType *vec3);
44 
45 template <typename ValueType>
46 void scale(const int mic_dev,
47  const ValueType alpha, const int size, ValueType *vec);
48 
49 template <typename ValueType>
50 void pointwisemult(const int mic_dev,
51  const ValueType *vec1, const int size, ValueType *vec2);
52 
53 template <typename ValueType>
54 void pointwisemult2(const int mic_dev,
55  const ValueType *vec1, const ValueType *vec2,
56  const int size, ValueType *vec3);
57 
58 template <typename ValueType>
59 void permute(const int mic_dev,
60  const int *perm, const ValueType *in,
61  const int size, ValueType *out);
62 
63 template <typename ValueType>
64 void permuteback(const int mic_dev,
65  const int *perm, const ValueType *in,
66  const int size, ValueType *out);
67 
68 template <typename ValueType>
69 void power(const int mic_dev,
70  const int size, const double val, ValueType *vec);
71 
72 }
73 
74 #endif // PARALUTION_BASE_VECTOR_KERNEL_HPP_
void pointwisemult(const int mic_dev, const ValueType *vec1, const int size, ValueType *vec2)
Definition: mic_vector_kernel.cpp:183
void scale(const int mic_dev, const ValueType alpha, const int size, ValueType *vec)
Definition: mic_vector_kernel.cpp:171
void scaleaddscale(const int mic_dev, const ValueType *vec1, const ValueType alpha, const ValueType beta, const int size, ValueType *vec2)
Definition: mic_vector_kernel.cpp:125
void scaleadd2(const int mic_dev, const ValueType *vec1, const ValueType *vec2, const ValueType alpha, const ValueType beta, const ValueType gamma, const int size, ValueType *vec3)
Definition: mic_vector_kernel.cpp:155
void permute(const int mic_dev, const int *perm, const ValueType *in, const int size, ValueType *out)
Definition: mic_vector_kernel.cpp:211
void norm(const int mic_dev, const ValueType *vec, const int size, ValueType &d)
Definition: mic_vector_kernel.cpp:69
void permuteback(const int mic_dev, const int *perm, const ValueType *in, const int size, ValueType *out)
Definition: mic_vector_kernel.cpp:226
void addscale(const int mic_dev, const ValueType *vec1, const ValueType alpha, const int size, ValueType *vec2)
Definition: mic_vector_kernel.cpp:112
void power(const int mic_dev, const int size, const double val, ValueType *vec)
Definition: mic_vector_kernel.cpp:241
void amax(const int mic_dev, const ValueType *vec, const int size, ValueType &d, int &index)
Definition: mic_vector_kernel.cpp:42
void pointwisemult2(const int mic_dev, const ValueType *vec1, const ValueType *vec2, const int size, ValueType *vec3)
Definition: mic_vector_kernel.cpp:196
Definition: backend_manager.cpp:43
void scaleadd(const int mic_dev, const ValueType *vec1, const ValueType alpha, const int size, ValueType *vec2)
Definition: mic_vector_kernel.cpp:100
void reduce(const int mic_dev, const ValueType *vec, const int size, ValueType &d)
Definition: mic_vector_kernel.cpp:84
void dot(const int mic_dev, const ValueType *vec1, const ValueType *vec2, const int size, ValueType &d)
Definition: mic_vector_kernel.cpp:10
void asum(const int mic_dev, const ValueType *vec, const int size, ValueType &d)
Definition: mic_vector_kernel.cpp:26