OmniSciDB  0264ff685a
ExtensionFunctionsTesting.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_udf_any (int32_t input)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udf_cpu__cpu_ (int32_t input)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udf_gpu__gpu_ (int32_t input)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udf_both__cpu_ (int32_t input)
 
EXTENSION_NOINLINE int32_t ct_device_selection_udf_both__gpu_ (int32_t input)
 

Macro Definition Documentation

◆ CPU_DEVICE_CODE

#define CPU_DEVICE_CODE   0x637075

◆ GPU_DEVICE_CODE

#define GPU_DEVICE_CODE   0x677075

Function Documentation

◆ ct_device_selection_udf_any()

EXTENSION_NOINLINE int32_t ct_device_selection_udf_any ( int32_t  input)

Definition at line 11 of file ExtensionFunctionsTesting.hpp.

References CPU_DEVICE_CODE, EXTENSION_NOINLINE, and GPU_DEVICE_CODE.

11  {
12 #ifdef __CUDACC__
13  return GPU_DEVICE_CODE;
14 #else
15  return CPU_DEVICE_CODE;
16 #endif
17 }
#define CPU_DEVICE_CODE
#define GPU_DEVICE_CODE

◆ ct_device_selection_udf_both__cpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udf_both__cpu_ ( int32_t  input)

Definition at line 30 of file ExtensionFunctionsTesting.hpp.

References CPU_DEVICE_CODE, and EXTENSION_NOINLINE.

30  {
31  return CPU_DEVICE_CODE;
32 }
#define CPU_DEVICE_CODE

◆ ct_device_selection_udf_both__gpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udf_both__gpu_ ( int32_t  input)

Definition at line 35 of file ExtensionFunctionsTesting.hpp.

References GPU_DEVICE_CODE.

35  {
36  return GPU_DEVICE_CODE;
37 }
#define GPU_DEVICE_CODE

◆ ct_device_selection_udf_cpu__cpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udf_cpu__cpu_ ( int32_t  input)

Definition at line 20 of file ExtensionFunctionsTesting.hpp.

References CPU_DEVICE_CODE, and EXTENSION_NOINLINE.

20  {
21  return CPU_DEVICE_CODE;
22 }
#define CPU_DEVICE_CODE

◆ ct_device_selection_udf_gpu__gpu_()

EXTENSION_NOINLINE int32_t ct_device_selection_udf_gpu__gpu_ ( int32_t  input)

Definition at line 25 of file ExtensionFunctionsTesting.hpp.

References EXTENSION_NOINLINE, and GPU_DEVICE_CODE.

25  {
26  return GPU_DEVICE_CODE;
27 }
#define GPU_DEVICE_CODE