OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

#define CPU_DEVICE_CODE   0x637075
#define GPU_DEVICE_CODE   0x677075

Function Documentation

EXTENSION_NOINLINE int32_t ct_device_selection_udf_any ( int32_t  input)

Definition at line 11 of file ExtensionFunctionsTesting.hpp.

References CPU_DEVICE_CODE, 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
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.

30  {
31  return CPU_DEVICE_CODE;
32 }
#define CPU_DEVICE_CODE
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
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.

20  {
21  return CPU_DEVICE_CODE;
22 }
#define CPU_DEVICE_CODE
EXTENSION_NOINLINE int32_t ct_device_selection_udf_gpu__gpu_ ( int32_t  input)

Definition at line 25 of file ExtensionFunctionsTesting.hpp.

References GPU_DEVICE_CODE.

25  {
26  return GPU_DEVICE_CODE;
27 }
#define GPU_DEVICE_CODE