OmniSciDB  ba1bac9284
 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 178 of file NvidiaKernel.cpp.

References CHECK, and module_.

178  {
179 #ifdef HAVE_CUDA
180  CHECK(cuda_mgr_);
181  cuda_mgr_->unloadGpuModuleData(&module_, device_id_);
182 #endif
183 }
#define CHECK(condition)
Definition: Logger.h:206

Member Function Documentation

CUfunction GpuDeviceCompilationContext::kernel ( )

Definition at line 61 of file NvidiaKernel.h.

References kernel_.

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

Definition at line 62 of file NvidiaKernel.h.

References module_.

62 { return module_; }

Member Data Documentation

CUfunction GpuDeviceCompilationContext::kernel_

Definition at line 66 of file NvidiaKernel.h.

Referenced by kernel().

CUmodule GpuDeviceCompilationContext::module_

Definition at line 65 of file NvidiaKernel.h.

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

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