-
Notifications
You must be signed in to change notification settings - Fork 1
/
hamr_hip_copy.cxx
211 lines (195 loc) · 9.75 KB
/
hamr_hip_copy.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#include "hamr_config.h"
#include "hamr_hip_copy.h"
#include "hamr_hip_copy_impl.h"
#define hamr_hip_copy_instantiate_(T, U) \
template int hamr::copy_to_hip_from_host<T,U>(T *dest, const U *src, size_t n_elem, hamr::use_cons_copier_t<T,U> *); \
template int hamr::copy_to_hip_from_hip<T,U>(T *dest, const U *src, size_t n_elem, hamr::use_cons_copier_t<T,U> *); \
template int hamr::copy_to_hip_from_hip<T,U>(T *dest, const U *src, int src_device, size_t n_elem, hamr::use_cons_copier_t<T,U> *); \
template int hamr::copy_to_host_from_hip<T,U>(T *dest, const U *src, size_t n_elem, hamr::use_cons_copier_t<T,U> *);
#define hamr_hip_copy_instantiate__(T) \
template int hamr::copy_to_hip_from_host<T,T>(T *dest, const T *src, size_t n_elem, hamr::use_bytes_copier_t<T,T> *); \
template int hamr::copy_to_hip_from_hip<T,T>(T *dest, const T *src, size_t n_elem, hamr::use_bytes_copier_t<T,T> *); \
template int hamr::copy_to_hip_from_hip<T,T>(T *dest, const T *src, int src_device, size_t n_elem, hamr::use_bytes_copier_t<T,T> *); \
template int hamr::copy_to_host_from_hip<T,T>(T *dest, const T *src, size_t n_elem, hamr::use_bytes_copier_t<T,T> *); \
hamr_hip_copy_instantiate__(float)
hamr_hip_copy_instantiate__(double)
hamr_hip_copy_instantiate__(char)
hamr_hip_copy_instantiate__(signed char)
hamr_hip_copy_instantiate__(short)
hamr_hip_copy_instantiate__(int)
hamr_hip_copy_instantiate__(long)
hamr_hip_copy_instantiate__(long long)
hamr_hip_copy_instantiate__(unsigned char)
hamr_hip_copy_instantiate__(unsigned short)
hamr_hip_copy_instantiate__(unsigned int)
hamr_hip_copy_instantiate__(unsigned long)
hamr_hip_copy_instantiate__(unsigned long long)
//hamr_hip_copy_instantiate_(float, float)
hamr_hip_copy_instantiate_(float, double)
hamr_hip_copy_instantiate_(float, char)
hamr_hip_copy_instantiate_(float, signed char)
hamr_hip_copy_instantiate_(float, short)
hamr_hip_copy_instantiate_(float, int)
hamr_hip_copy_instantiate_(float, long)
hamr_hip_copy_instantiate_(float, long long)
hamr_hip_copy_instantiate_(float, unsigned char)
hamr_hip_copy_instantiate_(float, unsigned short)
hamr_hip_copy_instantiate_(float, unsigned int)
hamr_hip_copy_instantiate_(float, unsigned long)
hamr_hip_copy_instantiate_(float, unsigned long long)
hamr_hip_copy_instantiate_(double, float)
//hamr_hip_copy_instantiate_(double, double)
hamr_hip_copy_instantiate_(double, char)
hamr_hip_copy_instantiate_(double, signed char)
hamr_hip_copy_instantiate_(double, short)
hamr_hip_copy_instantiate_(double, int)
hamr_hip_copy_instantiate_(double, long)
hamr_hip_copy_instantiate_(double, long long)
hamr_hip_copy_instantiate_(double, unsigned char)
hamr_hip_copy_instantiate_(double, unsigned short)
hamr_hip_copy_instantiate_(double, unsigned int)
hamr_hip_copy_instantiate_(double, unsigned long)
hamr_hip_copy_instantiate_(double, unsigned long long)
hamr_hip_copy_instantiate_(char, float)
hamr_hip_copy_instantiate_(char, double)
//hamr_hip_copy_instantiate_(char, char)
hamr_hip_copy_instantiate_(char, signed char)
hamr_hip_copy_instantiate_(char, short)
hamr_hip_copy_instantiate_(char, int)
hamr_hip_copy_instantiate_(char, long)
hamr_hip_copy_instantiate_(char, long long)
hamr_hip_copy_instantiate_(char, unsigned char)
hamr_hip_copy_instantiate_(char, unsigned short)
hamr_hip_copy_instantiate_(char, unsigned int)
hamr_hip_copy_instantiate_(char, unsigned long)
hamr_hip_copy_instantiate_(char, unsigned long long)
hamr_hip_copy_instantiate_(signed char, float)
hamr_hip_copy_instantiate_(signed char, double)
hamr_hip_copy_instantiate_(signed char, char)
//hamr_hip_copy_instantiate_(signed char, signed char)
hamr_hip_copy_instantiate_(signed char, short)
hamr_hip_copy_instantiate_(signed char, int)
hamr_hip_copy_instantiate_(signed char, long)
hamr_hip_copy_instantiate_(signed char, long long)
hamr_hip_copy_instantiate_(signed char, unsigned char)
hamr_hip_copy_instantiate_(signed char, unsigned short)
hamr_hip_copy_instantiate_(signed char, unsigned int)
hamr_hip_copy_instantiate_(signed char, unsigned long)
hamr_hip_copy_instantiate_(signed char, unsigned long long)
hamr_hip_copy_instantiate_(short, float)
hamr_hip_copy_instantiate_(short, double)
hamr_hip_copy_instantiate_(short, char)
hamr_hip_copy_instantiate_(short, signed char)
//hamr_hip_copy_instantiate_(short, short)
hamr_hip_copy_instantiate_(short, int)
hamr_hip_copy_instantiate_(short, long)
hamr_hip_copy_instantiate_(short, long long)
hamr_hip_copy_instantiate_(short, unsigned char)
hamr_hip_copy_instantiate_(short, unsigned short)
hamr_hip_copy_instantiate_(short, unsigned int)
hamr_hip_copy_instantiate_(short, unsigned long)
hamr_hip_copy_instantiate_(short, unsigned long long)
hamr_hip_copy_instantiate_(int, float)
hamr_hip_copy_instantiate_(int, double)
hamr_hip_copy_instantiate_(int, char)
hamr_hip_copy_instantiate_(int, signed char)
hamr_hip_copy_instantiate_(int, short)
//hamr_hip_copy_instantiate_(int, int)
hamr_hip_copy_instantiate_(int, long)
hamr_hip_copy_instantiate_(int, long long)
hamr_hip_copy_instantiate_(int, unsigned char)
hamr_hip_copy_instantiate_(int, unsigned short)
hamr_hip_copy_instantiate_(int, unsigned int)
hamr_hip_copy_instantiate_(int, unsigned long)
hamr_hip_copy_instantiate_(int, unsigned long long)
hamr_hip_copy_instantiate_(long, float)
hamr_hip_copy_instantiate_(long, double)
hamr_hip_copy_instantiate_(long, char)
hamr_hip_copy_instantiate_(long, signed char)
hamr_hip_copy_instantiate_(long, short)
hamr_hip_copy_instantiate_(long, int)
//hamr_hip_copy_instantiate_(long, long)
hamr_hip_copy_instantiate_(long, long long)
hamr_hip_copy_instantiate_(long, unsigned char)
hamr_hip_copy_instantiate_(long, unsigned short)
hamr_hip_copy_instantiate_(long, unsigned int)
hamr_hip_copy_instantiate_(long, unsigned long)
hamr_hip_copy_instantiate_(long, unsigned long long)
hamr_hip_copy_instantiate_(long long, float)
hamr_hip_copy_instantiate_(long long, double)
hamr_hip_copy_instantiate_(long long, char)
hamr_hip_copy_instantiate_(long long, signed char)
hamr_hip_copy_instantiate_(long long, short)
hamr_hip_copy_instantiate_(long long, int)
hamr_hip_copy_instantiate_(long long, long)
//hamr_hip_copy_instantiate_(long long, long long)
hamr_hip_copy_instantiate_(long long, unsigned char)
hamr_hip_copy_instantiate_(long long, unsigned short)
hamr_hip_copy_instantiate_(long long, unsigned int)
hamr_hip_copy_instantiate_(long long, unsigned long)
hamr_hip_copy_instantiate_(long long, unsigned long long)
hamr_hip_copy_instantiate_(unsigned char, float)
hamr_hip_copy_instantiate_(unsigned char, double)
hamr_hip_copy_instantiate_(unsigned char, char)
hamr_hip_copy_instantiate_(unsigned char, signed char)
hamr_hip_copy_instantiate_(unsigned char, short)
hamr_hip_copy_instantiate_(unsigned char, int)
hamr_hip_copy_instantiate_(unsigned char, long)
hamr_hip_copy_instantiate_(unsigned char, long long)
//hamr_hip_copy_instantiate_(unsigned char, unsigned char)
hamr_hip_copy_instantiate_(unsigned char, unsigned short)
hamr_hip_copy_instantiate_(unsigned char, unsigned int)
hamr_hip_copy_instantiate_(unsigned char, unsigned long)
hamr_hip_copy_instantiate_(unsigned char, unsigned long long)
hamr_hip_copy_instantiate_(unsigned short, float)
hamr_hip_copy_instantiate_(unsigned short, double)
hamr_hip_copy_instantiate_(unsigned short, char)
hamr_hip_copy_instantiate_(unsigned short, signed char)
hamr_hip_copy_instantiate_(unsigned short, short)
hamr_hip_copy_instantiate_(unsigned short, int)
hamr_hip_copy_instantiate_(unsigned short, long)
hamr_hip_copy_instantiate_(unsigned short, long long)
hamr_hip_copy_instantiate_(unsigned short, unsigned char)
//hamr_hip_copy_instantiate_(unsigned short, unsigned short)
hamr_hip_copy_instantiate_(unsigned short, unsigned int)
hamr_hip_copy_instantiate_(unsigned short, unsigned long)
hamr_hip_copy_instantiate_(unsigned short, unsigned long long)
hamr_hip_copy_instantiate_(unsigned int, float)
hamr_hip_copy_instantiate_(unsigned int, double)
hamr_hip_copy_instantiate_(unsigned int, char)
hamr_hip_copy_instantiate_(unsigned int, signed char)
hamr_hip_copy_instantiate_(unsigned int, short)
hamr_hip_copy_instantiate_(unsigned int, int)
hamr_hip_copy_instantiate_(unsigned int, long)
hamr_hip_copy_instantiate_(unsigned int, long long)
hamr_hip_copy_instantiate_(unsigned int, unsigned char)
hamr_hip_copy_instantiate_(unsigned int, unsigned short)
//hamr_hip_copy_instantiate_(unsigned int, unsigned int)
hamr_hip_copy_instantiate_(unsigned int, unsigned long)
hamr_hip_copy_instantiate_(unsigned int, unsigned long long)
hamr_hip_copy_instantiate_(unsigned long, float)
hamr_hip_copy_instantiate_(unsigned long, double)
hamr_hip_copy_instantiate_(unsigned long, char)
hamr_hip_copy_instantiate_(unsigned long, signed char)
hamr_hip_copy_instantiate_(unsigned long, short)
hamr_hip_copy_instantiate_(unsigned long, int)
hamr_hip_copy_instantiate_(unsigned long, long)
hamr_hip_copy_instantiate_(unsigned long, long long)
hamr_hip_copy_instantiate_(unsigned long, unsigned char)
hamr_hip_copy_instantiate_(unsigned long, unsigned short)
hamr_hip_copy_instantiate_(unsigned long, unsigned int)
//hamr_hip_copy_instantiate_(unsigned long, unsigned long)
hamr_hip_copy_instantiate_(unsigned long, unsigned long long)
hamr_hip_copy_instantiate_(unsigned long long, float)
hamr_hip_copy_instantiate_(unsigned long long, double)
hamr_hip_copy_instantiate_(unsigned long long, char)
hamr_hip_copy_instantiate_(unsigned long long, signed char)
hamr_hip_copy_instantiate_(unsigned long long, short)
hamr_hip_copy_instantiate_(unsigned long long, int)
hamr_hip_copy_instantiate_(unsigned long long, long)
hamr_hip_copy_instantiate_(unsigned long long, long long)
hamr_hip_copy_instantiate_(unsigned long long, unsigned char)
hamr_hip_copy_instantiate_(unsigned long long, unsigned short)
hamr_hip_copy_instantiate_(unsigned long long, unsigned int)
hamr_hip_copy_instantiate_(unsigned long long, unsigned long)
//hamr_hip_copy_instantiate_(unsigned long long, unsigned long long)