ParallelME Runtime Environment
|
#include <Device.hpp>
Public Member Functions | |
Device (const Device &)=delete | |
Device & | operator= (const Device &)=delete |
DevicePlatform | platform () const |
DeviceType | type () const |
DeviceID | id () const |
JavaVM * | jvm () |
JNIEnv * | jenv () |
Returns the JNIEnv of the current thread. | |
virtual void | finish ()=0 |
virtual std::shared_ptr< Buffer > | createBuffer (Buffer::ElementType type, int numX, int numY=1, int numZ=1)=0 |
Protected Member Functions | |
Device (DevicePlatform platform, DeviceType type, JavaVM *jvm) | |
This is an abstract class that defines the interface that should be implemented by a device of a given programming platform to work with the Runtime system. Each different programming platform creates one Device class for each execution device present in their system, and the Runtime class registers all these devices to be used on execution.
|
inlineprotected |
Initializes the device type.
|
pure virtual |
Creates a buffer on the device's memory and returns it.
type | The type of the elements of the buffer. |
numX | The number of elements of the X dimension of the buffer. |
numY | The number of elements of the Y dimension of the buffer. |
numZ | The number of elements of the Z dimension of the buffer. |
|
pure virtual |
Blocks until all executions queued for this device finishes.
|
inline |
Returns the device's ID.
|
inline |
Returns the JavaVM.
|
inline |
Returns the device's platform.
|
inline |
Returns the device type.