OmniSciDB  0264ff685a
TableFunctionsTesting.hpp
Go to the documentation of this file.
1 #define CPU_DEVICE_CODE 0x637075; // 'cpu' in hex
2 #define GPU_DEVICE_CODE 0x677075; // 'gpu' in hex
3 
6 #ifdef __CUDACC__
7  out[0] = GPU_DEVICE_CODE;
8 #else
9  out[0] = CPU_DEVICE_CODE;
10 #endif
11  return 1;
12 }
13 
16  Column<int64_t>& out) {
17  out[0] = CPU_DEVICE_CODE;
18  return 1;
19 }
20 
23  Column<int64_t>& out) {
24  out[0] = GPU_DEVICE_CODE;
25  return 1;
26 }
27 
30  Column<int64_t>& out) {
31  out[0] = CPU_DEVICE_CODE;
32  return 1;
33 }
34 
37  Column<int64_t>& out) {
38  out[0] = GPU_DEVICE_CODE;
39  return 1;
40 }
41 
42 #undef CPU_DEVICE_CODE
43 #undef GPU_DEVICE_CODE
#define CPU_DEVICE_CODE
#define EXTENSION_NOINLINE
Definition: OmniSciTypes.h:27
#define GPU_DEVICE_CODE
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_both__cpu_(const Column< int32_t > &input, Column< int64_t > &out)
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_both__gpu_(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)