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

#include <NvidiaKernel.h>

Public Member Functions

 GpuDeviceCompilationContext (const void *image, 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 ()
 

Private Attributes

CUmodule module_
 
CUfunction kernel_
 

Detailed Description

Definition at line 51 of file NvidiaKernel.h.

Constructor & Destructor Documentation

GpuDeviceCompilationContext::GpuDeviceCompilationContext ( const void *  image,
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 163 of file NvidiaKernel.cpp.

References CHECK, and module_.

163  {
164 #ifdef HAVE_CUDA
165  CHECK(cuda_mgr_);
166  cuda_mgr_->unloadGpuModuleData(&module_, device_id_);
167 #endif
168 }
#define CHECK(condition)
Definition: Logger.h:197

Member Function Documentation

CUfunction GpuDeviceCompilationContext::kernel ( )
inline

Definition at line 61 of file NvidiaKernel.h.

References kernel_.

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

Definition at line 62 of file NvidiaKernel.h.

References module_.

62 { return module_; }

Member Data Documentation

CUfunction GpuDeviceCompilationContext::kernel_
private

Definition at line 66 of file NvidiaKernel.h.

Referenced by kernel().

CUmodule GpuDeviceCompilationContext::module_
private

Definition at line 65 of file NvidiaKernel.h.

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


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