OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GpuDeviceCompilationContext Class Reference

#include <NvidiaKernel.h>

Public Member Functions

 GpuDeviceCompilationContext (const void *image, const size_t module_size, const std::string &kernel_name, const int device_id, const void *cuda_mgr, unsigned int num_options, CUjit_option *options, void **option_vals)
 
 ~GpuDeviceCompilationContext ()
 
CUfunction kernel ()
 
CUmodule module ()
 
std::string const & name () const
 
size_t getModuleSize () const
 

Private Attributes

CUmodule module_
 
size_t module_size_
 
CUfunction kernel_
 
std::string const kernel_name_
 

Detailed Description

Definition at line 60 of file NvidiaKernel.h.

Constructor & Destructor Documentation

GpuDeviceCompilationContext::GpuDeviceCompilationContext ( const void *  image,
const size_t  module_size,
const std::string &  kernel_name,
const int  device_id,
const void *  cuda_mgr,
unsigned int  num_options,
CUjit_option options,
void **  option_vals 
)
GpuDeviceCompilationContext::~GpuDeviceCompilationContext ( )

Definition at line 218 of file NvidiaKernel.cpp.

References CHECK, and module_.

218  {
219 #ifdef HAVE_CUDA
220  CHECK(cuda_mgr_);
221  cuda_mgr_->unloadGpuModuleData(&module_, device_id_);
222 #endif
223 }
#define CHECK(condition)
Definition: Logger.h:291

Member Function Documentation

size_t GpuDeviceCompilationContext::getModuleSize ( ) const
inline

Definition at line 74 of file NvidiaKernel.h.

References module_size_.

74 { return module_size_; }
CUfunction GpuDeviceCompilationContext::kernel ( )
inline

Definition at line 71 of file NvidiaKernel.h.

References kernel_.

71 { return kernel_; }
CUmodule GpuDeviceCompilationContext::module ( )
inline

Definition at line 72 of file NvidiaKernel.h.

References module_.

72 { return module_; }
std::string const& GpuDeviceCompilationContext::name ( ) const
inline

Definition at line 73 of file NvidiaKernel.h.

References kernel_name_.

73 { return kernel_name_; }
std::string const kernel_name_
Definition: NvidiaKernel.h:80

Member Data Documentation

CUfunction GpuDeviceCompilationContext::kernel_
private

Definition at line 79 of file NvidiaKernel.h.

Referenced by kernel().

std::string const GpuDeviceCompilationContext::kernel_name_
private

Definition at line 80 of file NvidiaKernel.h.

Referenced by name().

CUmodule GpuDeviceCompilationContext::module_
private

Definition at line 77 of file NvidiaKernel.h.

Referenced by module(), and ~GpuDeviceCompilationContext().

size_t GpuDeviceCompilationContext::module_size_
private

Definition at line 78 of file NvidiaKernel.h.

Referenced by getModuleSize().


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