OmniSciDB  72c90bc290
 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 51 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 217 of file NvidiaKernel.cpp.

References CHECK, and module_.

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

Member Function Documentation

size_t GpuDeviceCompilationContext::getModuleSize ( ) const

Definition at line 65 of file NvidiaKernel.h.

References module_size_.

65 { return module_size_; }
CUfunction GpuDeviceCompilationContext::kernel ( )

Definition at line 62 of file NvidiaKernel.h.

References kernel_.

62 { return kernel_; }
CUmodule GpuDeviceCompilationContext::module ( )

Definition at line 63 of file NvidiaKernel.h.

References module_.

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

Definition at line 64 of file NvidiaKernel.h.

References kernel_name_.

64 { return kernel_name_; }
std::string const kernel_name_
Definition: NvidiaKernel.h:71

Member Data Documentation

CUfunction GpuDeviceCompilationContext::kernel_

Definition at line 70 of file NvidiaKernel.h.

Referenced by kernel().

std::string const GpuDeviceCompilationContext::kernel_name_

Definition at line 71 of file NvidiaKernel.h.

Referenced by name().

CUmodule GpuDeviceCompilationContext::module_

Definition at line 68 of file NvidiaKernel.h.

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

size_t GpuDeviceCompilationContext::module_size_

Definition at line 69 of file NvidiaKernel.h.

Referenced by getModuleSize().

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