OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( 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 ( )

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 }
CHECK(cgen_state)

+ Here is the call graph for this function:

Member Function Documentation

CUfunction GpuCompilationContext::kernel ( )
inline

Definition at line 51 of file NvidiaKernel.h.

References kernel_.

51 { return kernel_; }
CUmodule GpuCompilationContext::module ( )
inline

Definition at line 52 of file NvidiaKernel.h.

References module_.

Referenced by Executor::getCodeFromCache().

52 { return module_; }

+ Here is the caller graph for this function:

Member Data Documentation

CUfunction GpuCompilationContext::kernel_
private

Definition at line 56 of file NvidiaKernel.h.

Referenced by kernel().

CUmodule GpuCompilationContext::module_
private

Definition at line 55 of file NvidiaKernel.h.

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


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