GPUOcelot
|
CUDA Driver API context. More...
#include <CudaDriverFrontend.h>
Public Types | |
enum | MemcpyKind { HostToHost = 0, HostToDevice = 1, DeviceToHost = 2, DeviceToDevice = 3, MemcpyKind_invalid } |
Public Member Functions | |
Context () | |
~Context () | |
void | _memcpy (void *dst, const void *src, size_t count, MemcpyKind kind) |
performs a memcpy on selected device | |
void | _memoryError (const void *address, size_t count, const std::string &func="") |
report a memory error and throw an exception | |
void | _enumerateDevices () |
create devices if they do not exist | |
executive::Device & | _getDevice () |
gets the current device for the current thread | |
std::string | _formatError (const std::string &message) |
returns an Ocelot-formatted error message | |
void | _registerModule (ModuleMap::iterator module) |
void | _registerModule (const std::string &name) |
void | _registerAllModules () |
Public Attributes | |
ModuleMap | _modules |
Registered modules. | |
HostThreadContext | _hostThreadContext |
object storing context information needed while configuring calls | |
KernelLaunchConfiguration | _launchConfiguration |
configuration of next kernel | |
RegisteredKernelMap | _kernels |
maps kernel symbols to module-kernels | |
RegisteredTextureMap | _textures |
maps texture symbols to module-textures | |
RegisteredGlobalMap | _globals |
maps symbol pointers onto their device names | |
EventSet | _events |
set of live events | |
StreamSet | _streams |
set of live streams | |
DimensionMap | _dimensions |
The dimensions for multi-dimensional allocations. | |
GLBufferMap | _buffers |
Registered opengl buffers and mapping to graphics resources. | |
executive::Device * | _device |
device | |
int | _selectedDevice |
index of device bound to context | |
int | _nextSymbol |
the next symbol for dynamically registered kernels | |
unsigned int | _flags |
The device flags. | |
FatBinaryVector | _fatBinaries |
fatbinaries | |
translator::Translator::OptimizationLevel | _optimization |
optimization level | |
int | _referenceCount |
number of references to this context |
CUDA Driver API context.
cuda::CudaDriverFrontend::Context::Context | ( | ) |
cuda::CudaDriverFrontend::Context::~Context | ( | ) |
void cuda::CudaDriverFrontend::Context::_enumerateDevices | ( | ) |
create devices if they do not exist
std::string cuda::CudaDriverFrontend::Context::_formatError | ( | const std::string & | message | ) |
returns an Ocelot-formatted error message
executive::Device & cuda::CudaDriverFrontend::Context::_getDevice | ( | ) |
gets the current device for the current thread
void cuda::CudaDriverFrontend::Context::_memcpy | ( | void * | dst, |
const void * | src, | ||
size_t | count, | ||
MemcpyKind | kind | ||
) |
performs a memcpy on selected device
void cuda::CudaDriverFrontend::Context::_memoryError | ( | const void * | address, |
size_t | count, | ||
const std::string & | func = "" |
||
) |
report a memory error and throw an exception
void cuda::CudaDriverFrontend::Context::_registerAllModules | ( | ) |
void cuda::CudaDriverFrontend::Context::_registerModule | ( | ModuleMap::iterator | module | ) |
void cuda::CudaDriverFrontend::Context::_registerModule | ( | const std::string & | name | ) |
Registered opengl buffers and mapping to graphics resources.
The dimensions for multi-dimensional allocations.
set of live events
unsigned int cuda::CudaDriverFrontend::Context::_flags |
The device flags.
maps symbol pointers onto their device names
object storing context information needed while configuring calls
maps kernel symbols to module-kernels
configuration of next kernel
Registered modules.
the next symbol for dynamically registered kernels
optimization level
number of references to this context
index of device bound to context
set of live streams
maps texture symbols to module-textures