GPUOcelot
Public Types | Public Member Functions | Public Attributes

cuda::CudaDriverFrontend::Context Class Reference

CUDA Driver API context. More...

#include <CudaDriverFrontend.h>

Collaboration diagram for cuda::CudaDriverFrontend::Context:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

CUDA Driver API context.


Member Enumeration Documentation

Enumerator:
HostToHost 
HostToDevice 
DeviceToHost 
DeviceToDevice 
MemcpyKind_invalid 

Constructor & Destructor Documentation

cuda::CudaDriverFrontend::Context::Context ( )
cuda::CudaDriverFrontend::Context::~Context ( )

Member Function Documentation

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)

Member Data Documentation

Registered opengl buffers and mapping to graphics resources.

device

The dimensions for multi-dimensional allocations.

set of live events

fatbinaries

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines