OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TableFunctionsTesting.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CPU_DEVICE_CODE   0x637075;
 
#define GPU_DEVICE_CODE   0x677075;
 

Functions

EXTENSION_NOINLINE int32_t ct_device_selection_udtf_any (const Column< int32_t > &input, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_cpu__cpu_ (const Column< int32_t > &input, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_gpu__gpu_ (const Column< int32_t > &input, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_both__cpu_ (const Column< int32_t > &input, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_both__gpu_ (const Column< int32_t > &input, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_1 (const Column< int32_t > &input1, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_2 (const Column< int32_t > &input1, const Column< int32_t > &input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_3 (const Column< int32_t > &input1, const Column< int32_t > &input2, const Column< int32_t > &input3, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_4 (const Column< int64_t > &input1, const Column< int32_t > &input2, const Column< int32_t > &input3, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_5 (const Column< int64_t > &input1, const Column< int64_t > &input2, const Column< int32_t > &input3, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_6 (const Column< int64_t > &input1, const Column< int32_t > &input2, const Column< int64_t > &input3, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_7 (const Column< int32_t > &input1, const ColumnList< int32_t > &input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_8 (const ColumnList< int32_t > &input1, const Column< int64_t > &input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_9 (const ColumnList< int32_t > &input1, const ColumnList< int64_t > &input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_10 (const Column< int64_t > &input1, const ColumnList< int64_t > &input2, const Column< int64_t > &input3, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_11 (const Column< int32_t > &input1, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_12 (const Column< int32_t > &input1, const Column< int32_t > &input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_13 (const Column< int32_t > &input1, const Column< int32_t > &input2, const Column< int32_t > &input3, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_14 (const Column< int64_t > &input1, const Column< int32_t > &input2, const Column< int32_t > &input3, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_15 (const Column< int64_t > &input1, const Column< int64_t > &input2, const Column< int32_t > &input3, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_16 (const Column< int64_t > &input1, const Column< int32_t > &input2, const Column< int64_t > &input3, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_17 (const Column< int32_t > &input1, const ColumnList< int32_t > &input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_18 (const ColumnList< int32_t > &input1, const Column< int64_t > &input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_19 (const ColumnList< int32_t > &input1, const ColumnList< int64_t > &input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_20 (const Column< int64_t > &input1, const ColumnList< int64_t > &input2, const Column< int64_t > &input3, const int32_t multiplier, Column< int64_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf2__cpu_21 (const int32_t multiplier, const Column< int32_t > &input1, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf6__cpu_22 (const Column< int32_t > &input1, const int32_t multiplier, const int32_t input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf4__cpu_23 (const ColumnList< int32_t > &input1, const int32_t multiplier, const int32_t input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf5__cpu_24 (const ColumnList< int32_t > &input1, const int32_t input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_binding_udtf3__cpu_25 (const Column< int32_t > &input1, const int32_t input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1a__cpu_1 (const Column< int32_t > &input1, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1b__cpu_2 (const Column< int32_t > &input1, const Column< int32_t > &input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1c__cpu_3 (const Column< int32_t > &input1, const Column< int32_t > &input2, const Column< int32_t > &input3, const int32_t multiplier, const Column< int32_t > &input4, const int32_t x, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1d__cpu_4 (const int32_t multiplier, const int32_t x, const Column< int32_t > &input1, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer2a__cpu_1 (const Column< int32_t > &input1, const int32_t x, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer2b__cpu_2 (const Column< int32_t > &input1, const int32_t multiplier, const Column< int32_t > &input2, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer2c__cpu_3 (const int32_t x, const int32_t multiplier, const Column< int32_t > &input1, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer3a__cpu_1 (const Column< int32_t > &input1, const int32_t multiplier, const int32_t x, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer3b__cpu_2 (const Column< int32_t > &input1, const int32_t x, const Column< int32_t > &input2, const int32_t multiplier, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer4a__cpu_1 (const Column< int32_t > &input1, const int32_t multiplier, const Column< int32_t > &input2, const int32_t x, Column< int32_t > &out)
 
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer4b__cpu_2 (const int32_t multiplier, const Column< int32_t > &input, const int32_t x, Column< int32_t > &out)
 

Macro Definition Documentation

#define CPU_DEVICE_CODE   0x637075;
#define GPU_DEVICE_CODE   0x677075;

Function Documentation

EXTENSION_NOINLINE int32_t ct_binding_udtf2__cpu_21 ( const int32_t  multiplier,
const Column< int32_t > &  input1,
Column< int32_t > &  out 
)

Definition at line 241 of file TableFunctionsTesting.hpp.

243  {
244  out[0] = 1000 + 91 + multiplier;
245  return 1;
246 }
EXTENSION_NOINLINE int32_t ct_binding_udtf3__cpu_25 ( const Column< int32_t > &  input1,
const int32_t  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 268 of file TableFunctionsTesting.hpp.

271  {
272  out[0] = 1000 + 169 + multiplier + 10 * input2;
273  return 1;
274 }
EXTENSION_NOINLINE int32_t ct_binding_udtf4__cpu_23 ( const ColumnList< int32_t > &  input1,
const int32_t  multiplier,
const int32_t  input2,
Column< int32_t > &  out 
)

Definition at line 254 of file TableFunctionsTesting.hpp.

257  {
258  out[0] = 1000 + 396 + multiplier + 10 * input2;
259  return 1;
260 }
EXTENSION_NOINLINE int32_t ct_binding_udtf5__cpu_24 ( const ColumnList< int32_t > &  input1,
const int32_t  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 261 of file TableFunctionsTesting.hpp.

264  {
265  out[0] = 1000 + 369 + multiplier + 10 * input2;
266  return 1;
267 }
EXTENSION_NOINLINE int32_t ct_binding_udtf6__cpu_22 ( const Column< int32_t > &  input1,
const int32_t  multiplier,
const int32_t  input2,
Column< int32_t > &  out 
)

Definition at line 247 of file TableFunctionsTesting.hpp.

250  {
251  out[0] = 1000 + 196 + multiplier + 10 * input2;
252  return 1;
253 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_11 ( const Column< int32_t > &  input1,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 166 of file TableFunctionsTesting.hpp.

168  {
169  out[0] = 1000 + 19 + multiplier;
170  return 1;
171 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_12 ( const Column< int32_t > &  input1,
const Column< int32_t > &  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 172 of file TableFunctionsTesting.hpp.

175  {
176  out[0] = 1000 + 119 + multiplier;
177  return 1;
178 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_13 ( const Column< int32_t > &  input1,
const Column< int32_t > &  input2,
const Column< int32_t > &  input3,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 179 of file TableFunctionsTesting.hpp.

183  {
184  out[0] = 1000 + 1119 + multiplier;
185  return 1;
186 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_14 ( const Column< int64_t > &  input1,
const Column< int32_t > &  input2,
const Column< int32_t > &  input3,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 187 of file TableFunctionsTesting.hpp.

191  {
192  out[0] = 1000 + 2119 + multiplier;
193  return 1;
194 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_15 ( const Column< int64_t > &  input1,
const Column< int64_t > &  input2,
const Column< int32_t > &  input3,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 195 of file TableFunctionsTesting.hpp.

199  {
200  out[0] = 1000 + 2219 + multiplier;
201  return 1;
202 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_16 ( const Column< int64_t > &  input1,
const Column< int32_t > &  input2,
const Column< int64_t > &  input3,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 203 of file TableFunctionsTesting.hpp.

207  {
208  out[0] = 1000 + 2129 + multiplier;
209  return 1;
210 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_17 ( const Column< int32_t > &  input1,
const ColumnList< int32_t > &  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 211 of file TableFunctionsTesting.hpp.

214  {
215  out[0] = 1000 + 139 + multiplier;
216  return 1;
217 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_18 ( const ColumnList< int32_t > &  input1,
const Column< int64_t > &  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 218 of file TableFunctionsTesting.hpp.

221  {
222  out[0] = 1000 + 329 + multiplier;
223  return 1;
224 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_19 ( const ColumnList< int32_t > &  input1,
const ColumnList< int64_t > &  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 225 of file TableFunctionsTesting.hpp.

228  {
229  out[0] = 1000 + 349 + multiplier;
230  return 1;
231 }
EXTENSION_NOINLINE int32_t ct_binding_udtf__cpu_20 ( const Column< int64_t > &  input1,
const ColumnList< int64_t > &  input2,
const Column< int64_t > &  input3,
const int32_t  multiplier,
Column< int64_t > &  out 
)

Definition at line 232 of file TableFunctionsTesting.hpp.

236  {
237  out[0] = 1000 + 2429 + multiplier;
238  return 1;
239 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_1 ( const Column< int32_t > &  input1,
Column< int32_t > &  out 
)

Definition at line 97 of file TableFunctionsTesting.hpp.

98  {
99  out[0] = 1;
100  return 1;
101 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_10 ( const Column< int64_t > &  input1,
const ColumnList< int64_t > &  input2,
const Column< int64_t > &  input3,
Column< int64_t > &  out 
)

Definition at line 158 of file TableFunctionsTesting.hpp.

161  {
162  out[0] = 242;
163  return 1;
164 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_2 ( const Column< int32_t > &  input1,
const Column< int32_t > &  input2,
Column< int32_t > &  out 
)

Definition at line 102 of file TableFunctionsTesting.hpp.

104  {
105  out[0] = 11;
106  return 1;
107 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_3 ( const Column< int32_t > &  input1,
const Column< int32_t > &  input2,
const Column< int32_t > &  input3,
Column< int32_t > &  out 
)

Definition at line 108 of file TableFunctionsTesting.hpp.

111  {
112  out[0] = 111;
113  return 1;
114 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_4 ( const Column< int64_t > &  input1,
const Column< int32_t > &  input2,
const Column< int32_t > &  input3,
Column< int32_t > &  out 
)

Definition at line 115 of file TableFunctionsTesting.hpp.

118  {
119  out[0] = 211;
120  return 1;
121 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_5 ( const Column< int64_t > &  input1,
const Column< int64_t > &  input2,
const Column< int32_t > &  input3,
Column< int32_t > &  out 
)

Definition at line 122 of file TableFunctionsTesting.hpp.

125  {
126  out[0] = 221;
127  return 1;
128 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_6 ( const Column< int64_t > &  input1,
const Column< int32_t > &  input2,
const Column< int64_t > &  input3,
Column< int32_t > &  out 
)

Definition at line 129 of file TableFunctionsTesting.hpp.

132  {
133  out[0] = 212;
134  return 1;
135 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_7 ( const Column< int32_t > &  input1,
const ColumnList< int32_t > &  input2,
Column< int32_t > &  out 
)

Definition at line 137 of file TableFunctionsTesting.hpp.

139  {
140  out[0] = 13;
141  return 1;
142 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_8 ( const ColumnList< int32_t > &  input1,
const Column< int64_t > &  input2,
Column< int32_t > &  out 
)

Definition at line 144 of file TableFunctionsTesting.hpp.

146  {
147  out[0] = 32;
148  return 1;
149 }
EXTENSION_NOINLINE int32_t ct_binding_udtf_constant__cpu_9 ( const ColumnList< int32_t > &  input1,
const ColumnList< int64_t > &  input2,
Column< int32_t > &  out 
)

Definition at line 151 of file TableFunctionsTesting.hpp.

153  {
154  out[0] = 34;
155  return 1;
156 }
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_any ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 20 of file TableFunctionsTesting.hpp.

References CPU_DEVICE_CODE, and GPU_DEVICE_CODE.

20  {
21 #ifdef __CUDACC__
22  out[0] = GPU_DEVICE_CODE;
23 #else
24  out[0] = CPU_DEVICE_CODE;
25 #endif
26  return 1;
27 }
#define CPU_DEVICE_CODE
#define GPU_DEVICE_CODE
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_both__cpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 44 of file TableFunctionsTesting.hpp.

References CPU_DEVICE_CODE.

45  {
46  out[0] = CPU_DEVICE_CODE;
47  return 1;
48 }
#define CPU_DEVICE_CODE
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_both__gpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 51 of file TableFunctionsTesting.hpp.

References GPU_DEVICE_CODE.

52  {
53  out[0] = GPU_DEVICE_CODE;
54  return 1;
55 }
#define GPU_DEVICE_CODE
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_cpu__cpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 30 of file TableFunctionsTesting.hpp.

References CPU_DEVICE_CODE.

31  {
32  out[0] = CPU_DEVICE_CODE;
33  return 1;
34 }
#define CPU_DEVICE_CODE
EXTENSION_NOINLINE int32_t ct_device_selection_udtf_gpu__gpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 37 of file TableFunctionsTesting.hpp.

References GPU_DEVICE_CODE.

38  {
39  out[0] = GPU_DEVICE_CODE;
40  return 1;
41 }
#define GPU_DEVICE_CODE
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1a__cpu_1 ( const Column< int32_t > &  input1,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 295 of file TableFunctionsTesting.hpp.

297  {
298  out[0] = 1000 + 1 + 10 * multiplier;
299  return 1;
300 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1b__cpu_2 ( const Column< int32_t > &  input1,
const Column< int32_t > &  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 301 of file TableFunctionsTesting.hpp.

304  {
305  out[0] = 1000 + 2 + 11 * multiplier;
306  return 1;
307 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1c__cpu_3 ( const Column< int32_t > &  input1,
const Column< int32_t > &  input2,
const Column< int32_t > &  input3,
const int32_t  multiplier,
const Column< int32_t > &  input4,
const int32_t  x,
Column< int32_t > &  out 
)

Definition at line 308 of file TableFunctionsTesting.hpp.

314  {
315  out[0] = 1000 + 101 + 10 * multiplier + x;
316  return 1;
317 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer1d__cpu_4 ( const int32_t  multiplier,
const int32_t  x,
const Column< int32_t > &  input1,
Column< int32_t > &  out 
)

Definition at line 318 of file TableFunctionsTesting.hpp.

321  {
322  out[0] = 1000 + 99 + 10 * multiplier + x;
323  return 1;
324 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer2a__cpu_1 ( const Column< int32_t > &  input1,
const int32_t  x,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 325 of file TableFunctionsTesting.hpp.

328  {
329  out[0] = 1000 + 98 + multiplier + 10 * x;
330  return 1;
331 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer2b__cpu_2 ( const Column< int32_t > &  input1,
const int32_t  multiplier,
const Column< int32_t > &  input2,
Column< int32_t > &  out 
)

Definition at line 332 of file TableFunctionsTesting.hpp.

335  {
336  out[0] = 1000 + 2 + multiplier;
337  return 1;
338 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer2c__cpu_3 ( const int32_t  x,
const int32_t  multiplier,
const Column< int32_t > &  input1,
Column< int32_t > &  out 
)

Definition at line 339 of file TableFunctionsTesting.hpp.

342  {
343  out[0] = 1000 + 99 + multiplier + 11 * x;
344  return 1;
345 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer3a__cpu_1 ( const Column< int32_t > &  input1,
const int32_t  multiplier,
const int32_t  x,
Column< int32_t > &  out 
)

Definition at line 346 of file TableFunctionsTesting.hpp.

349  {
350  out[0] = 1000 + 98 + 100 * multiplier + x;
351  return 1;
352 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer3b__cpu_2 ( const Column< int32_t > &  input1,
const int32_t  x,
const Column< int32_t > &  input2,
const int32_t  multiplier,
Column< int32_t > &  out 
)

Definition at line 353 of file TableFunctionsTesting.hpp.

357  {
358  out[0] = 1000 + 99 + 100 * multiplier + x;
359  return 1;
360 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer4a__cpu_1 ( const Column< int32_t > &  input1,
const int32_t  multiplier,
const Column< int32_t > &  input2,
const int32_t  x,
Column< int32_t > &  out 
)

Definition at line 361 of file TableFunctionsTesting.hpp.

365  {
366  out[0] = 1000 + 99 + 10 * multiplier + x;
367  return 1;
368 }
EXTENSION_NOINLINE int32_t ct_udtf_default_sizer4b__cpu_2 ( const int32_t  multiplier,
const Column< int32_t > &  input,
const int32_t  x,
Column< int32_t > &  out 
)

Definition at line 369 of file TableFunctionsTesting.hpp.

372  {
373  out[0] = 1000 + 99 + 9 * multiplier + x;
374  return 1;
375 }