GPUOcelot
Public Member Functions

executive::RemoteDevice::MemoryAllocation Class Reference

An interface to a managed memory allocation. More...

#include <RemoteDevice.h>

Inheritance diagram for executive::RemoteDevice::MemoryAllocation:
Inheritance graph
[legend]
Collaboration diagram for executive::RemoteDevice::MemoryAllocation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MemoryAllocation ()
 Generic Construct.
 MemoryAllocation (RemoteDevice *d, size_t size, void *pointer)
 Construct a device allocation.
 MemoryAllocation (RemoteDevice *d, size_t size, unsigned int flags)
 Construct a host allocation.
 MemoryAllocation (RemoteDevice *d, void *pointer, size_t size)
 Construct an external allocaton.
 ~MemoryAllocation ()
 Desructor.
unsigned int flags () const
 Get the flags if this is a host pointer.
void * mappedPointer () const
 Get a host pointer if for a host allocation.
void * pointer () const
 Get a device pointer to the base.
size_t size () const
 The size of the allocation.
void copy (size_t offset, const void *host, size_t size)
 Copy from an external host pointer.
void copy (void *host, size_t offset, size_t size) const
 Copy to an external host pointer.
void memset (size_t offset, int value, size_t size)
 Memset the allocation.
void copy (Device::MemoryAllocation *allocation, size_t toOffset, size_t fromOffset, size_t size) const
 Copy to another allocation.

Detailed Description

An interface to a managed memory allocation.


Constructor & Destructor Documentation

executive::RemoteDevice::MemoryAllocation::MemoryAllocation ( )

Generic Construct.

executive::RemoteDevice::MemoryAllocation::MemoryAllocation ( RemoteDevice d,
size_t  size,
void *  pointer 
)

Construct a device allocation.

executive::RemoteDevice::MemoryAllocation::MemoryAllocation ( RemoteDevice d,
size_t  size,
unsigned int  flags 
)

Construct a host allocation.

executive::RemoteDevice::MemoryAllocation::MemoryAllocation ( RemoteDevice d,
void *  pointer,
size_t  size 
)

Construct an external allocaton.

executive::RemoteDevice::MemoryAllocation::~MemoryAllocation ( ) [virtual]

Desructor.

Reimplemented from executive::Device::MemoryAllocation.


Member Function Documentation

void executive::RemoteDevice::MemoryAllocation::copy ( size_t  offset,
const void *  host,
size_t  size 
) [virtual]

Copy from an external host pointer.

Implements executive::Device::MemoryAllocation.

void executive::RemoteDevice::MemoryAllocation::copy ( Device::MemoryAllocation allocation,
size_t  toOffset,
size_t  fromOffset,
size_t  size 
) const [virtual]

Copy to another allocation.

Implements executive::Device::MemoryAllocation.

void executive::RemoteDevice::MemoryAllocation::copy ( void *  host,
size_t  offset,
size_t  size 
) const [virtual]

Copy to an external host pointer.

Implements executive::Device::MemoryAllocation.

unsigned int executive::RemoteDevice::MemoryAllocation::flags ( ) const [virtual]

Get the flags if this is a host pointer.

Implements executive::Device::MemoryAllocation.

void * executive::RemoteDevice::MemoryAllocation::mappedPointer ( ) const [virtual]

Get a host pointer if for a host allocation.

Implements executive::Device::MemoryAllocation.

void executive::RemoteDevice::MemoryAllocation::memset ( size_t  offset,
int  value,
size_t  size 
) [virtual]

Memset the allocation.

Implements executive::Device::MemoryAllocation.

void * executive::RemoteDevice::MemoryAllocation::pointer ( ) const [virtual]

Get a device pointer to the base.

Implements executive::Device::MemoryAllocation.

size_t executive::RemoteDevice::MemoryAllocation::size ( ) const [virtual]

The size of the allocation.

Implements executive::Device::MemoryAllocation.


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