cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
module.hpp File Reference

Implementations requiring the definitions of multiple CUDA entity proxy classes, and which regard modules. More...

#include "context.hpp"
#include "../device.hpp"
#include "../module.hpp"
Include dependency graph for module.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cuda
 Definitions and functionality wrapping CUDA APIs.
 

Functions

module_t cuda::module::load_from_file (const device_t &device, const char *path)
 
module_t cuda::module::load_from_file (const char *path)
 

Detailed Description

Implementations requiring the definitions of multiple CUDA entity proxy classes, and which regard modules.

Specifically:

  1. Functions in the cuda::module namespace.
  2. Methods of cuda::module_t and possibly some relates classes.
  3. The context_t::create_module() methods; see issue #320 on the issue tracker.

Function Documentation

◆ load_from_file() [1/2]

module_t cuda::module::load_from_file ( const device_t device,
const char *  path 
)
inline

Parameters
deviceThe device in whose primary context to create a module containing the loaded data

◆ load_from_file() [2/2]

module_t cuda::module::load_from_file ( const char *  path)
inline

Note
loads the module into the primary context of the device of the current context (although not necessarily in the current context!)