OmniSciDB  0264ff685a
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)
 

Macro Definition Documentation

◆ CPU_DEVICE_CODE

#define CPU_DEVICE_CODE   0x637075;

◆ GPU_DEVICE_CODE

#define GPU_DEVICE_CODE   0x677075;

Function Documentation

◆ ct_device_selection_udtf_any()

EXTENSION_NOINLINE int32_t ct_device_selection_udtf_any ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 5 of file TableFunctionsTesting.hpp.

References CPU_DEVICE_CODE, EXTENSION_NOINLINE, and GPU_DEVICE_CODE.

5  {
6 #ifdef __CUDACC__
7  out[0] = GPU_DEVICE_CODE;
8 #else
9  out[0] = CPU_DEVICE_CODE;
10 #endif
11  return 1;
12 }
#define CPU_DEVICE_CODE
#define GPU_DEVICE_CODE

◆ ct_device_selection_udtf_both__cpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udtf_both__cpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 29 of file TableFunctionsTesting.hpp.

References CPU_DEVICE_CODE, and EXTENSION_NOINLINE.

30  {
31  out[0] = CPU_DEVICE_CODE;
32  return 1;
33 }
#define CPU_DEVICE_CODE

◆ ct_device_selection_udtf_both__gpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udtf_both__gpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 36 of file TableFunctionsTesting.hpp.

References GPU_DEVICE_CODE.

37  {
38  out[0] = GPU_DEVICE_CODE;
39  return 1;
40 }
#define GPU_DEVICE_CODE

◆ ct_device_selection_udtf_cpu__cpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udtf_cpu__cpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 15 of file TableFunctionsTesting.hpp.

References CPU_DEVICE_CODE, and EXTENSION_NOINLINE.

16  {
17  out[0] = CPU_DEVICE_CODE;
18  return 1;
19 }
#define CPU_DEVICE_CODE

◆ ct_device_selection_udtf_gpu__gpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udtf_gpu__gpu_ ( const Column< int32_t > &  input,
Column< int64_t > &  out 
)

Definition at line 22 of file TableFunctionsTesting.hpp.

References EXTENSION_NOINLINE, and GPU_DEVICE_CODE.

23  {
24  out[0] = GPU_DEVICE_CODE;
25  return 1;
26 }
#define GPU_DEVICE_CODE