OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GpuSharedMemoryContext Class Reference

#include <GpuSharedMemoryContext.h>

Public Member Functions

 GpuSharedMemoryContext ()
 
 GpuSharedMemoryContext (const size_t shared_mem_size)
 
bool isSharedMemoryUsed () const
 
size_t getSharedMemorySize () const
 

Private Attributes

size_t shared_memory_size_
 

Detailed Description

Definition at line 20 of file GpuSharedMemoryContext.h.

Constructor & Destructor Documentation

GpuSharedMemoryContext::GpuSharedMemoryContext ( )
inline

Definition at line 22 of file GpuSharedMemoryContext.h.

GpuSharedMemoryContext::GpuSharedMemoryContext ( const size_t  shared_mem_size)
inline

Definition at line 23 of file GpuSharedMemoryContext.h.

References CHECK.

24  : shared_memory_size_(shared_mem_size) {
25  CHECK(shared_mem_size >= 0);
26  }
#define CHECK(condition)
Definition: Logger.h:291

Member Function Documentation

size_t GpuSharedMemoryContext::getSharedMemorySize ( ) const
inline

Definition at line 29 of file GpuSharedMemoryContext.h.

References shared_memory_size_.

Referenced by Executor::executePlanWithGroupBy(), Executor::executePlanWithoutGroupBy(), and query_group_by_template().

+ Here is the caller graph for this function:

bool GpuSharedMemoryContext::isSharedMemoryUsed ( ) const
inline

Definition at line 28 of file GpuSharedMemoryContext.h.

References shared_memory_size_.

Referenced by TargetExprCodegen::codegen(), Executor::executePlanWithoutGroupBy(), query_group_by_template(), and query_template().

28 { return shared_memory_size_ > 0; }

+ Here is the caller graph for this function:

Member Data Documentation

size_t GpuSharedMemoryContext::shared_memory_size_
private

Definition at line 32 of file GpuSharedMemoryContext.h.

Referenced by getSharedMemorySize(), and isSharedMemoryUsed().


The documentation for this class was generated from the following file: