OmniSciDB  a47db9e897
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaxwellCodegenPatch.h File Reference
#include "../CudaMgr/CudaMgr.h"
#include "Execute.h"
+ Include dependency graph for MaxwellCodegenPatch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool need_patch_unnest_double (const SQLTypeInfo &ti, const bool is_maxwell, const bool mem_shared)
 
std::string patch_agg_fname (const std::string &agg_name)
 

Function Documentation

bool need_patch_unnest_double ( const SQLTypeInfo ti,
const bool  is_maxwell,
const bool  mem_shared 
)
inline

Definition at line 23 of file MaxwellCodegenPatch.h.

References SQLTypeInfoCore< TYPE_FACET_PACK >::get_type(), SQLTypeInfoCore< TYPE_FACET_PACK >::is_fp(), and kDOUBLE.

Referenced by Executor::groupByColumnCodegen().

25  {
26  return is_maxwell && mem_shared && ti.is_fp() && ti.get_type() == kDOUBLE;
27 }
bool is_fp() const
Definition: sqltypes.h:481
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:326

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string patch_agg_fname ( const std::string &  agg_name)
inline

Definition at line 29 of file MaxwellCodegenPatch.h.

References CHECK_EQ.

Referenced by TargetExprCodegen::codegen().

29  {
30  const auto new_name = agg_name + "_slow";
31  CHECK_EQ("agg_id_double_shared_slow", new_name);
32  return new_name;
33 }
#define CHECK_EQ(x, y)
Definition: Logger.h:198

+ Here is the caller graph for this function: