OmniSciDB  04ee39c94c
GpuCompilationContext Class Reference

#include <NvidiaKernel.h>

Public Member Functions

 GpuCompilationContext (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)
 
 ~GpuCompilationContext ()
 
CUfunction kernel ()
 
CUmodule module ()
 

Private Attributes

CUmodule module_
 
CUfunction kernel_
 

Detailed Description

Definition at line 41 of file NvidiaKernel.h.

Constructor & Destructor Documentation

◆ GpuCompilationContext()

GpuCompilationContext::GpuCompilationContext ( 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 
)

◆ ~GpuCompilationContext()

GpuCompilationContext::~GpuCompilationContext ( )

Definition at line 111 of file NvidiaKernel.cpp.

References CHECK, and module_.

111  {
112 #ifdef HAVE_CUDA
113  CHECK(cuda_mgr_);
114  cuda_mgr_->unloadGpuModuleData(&module_, device_id_);
115 #endif
116 }
#define CHECK(condition)
Definition: Logger.h:187

Member Function Documentation

◆ kernel()

CUfunction GpuCompilationContext::kernel ( )
inline

Definition at line 51 of file NvidiaKernel.h.

51 { return kernel_; }

◆ module()

CUmodule GpuCompilationContext::module ( )
inline

Definition at line 52 of file NvidiaKernel.h.

Referenced by Executor::getCodeFromCache().

52 { return module_; }
+ Here is the caller graph for this function:

Member Data Documentation

◆ kernel_

CUfunction GpuCompilationContext::kernel_
private

Definition at line 56 of file NvidiaKernel.h.

◆ module_

CUmodule GpuCompilationContext::module_
private

Definition at line 55 of file NvidiaKernel.h.

Referenced by ~GpuCompilationContext().


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