Struct Cpu

Struct Documentation

struct Cpu

Class containing dummy functions when there is no GPU support.

Author

Slaven Peles peless@ornl.gov

Public Static Functions

static inline void deviceSynchronize()

Dummy function to stand in when GPU support is not enabled.

static inline int getLastDeviceError()

Dummy function to stand in when GPU support is not enabled.

Returns:

Always return success!

static inline int deleteOnDevice(void*)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!

template<typename I, typename T>
static inline int allocateArrayOnDevice(T**, I)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!

template<typename I, typename T>
static inline int allocateBufferOnDevice(T**, I)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!

template<typename I, typename T>
static inline int setZeroArrayOnDevice(T*, I)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!

template<typename I, typename T>
static inline int setArrayToConstOnDevice(T*, T, I)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!

template<typename I, typename T>
static inline int copyArrayDeviceToHost(T*, const T*, I)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!

template<typename I, typename T>
static inline int copyArrayDeviceToDevice(T*, const T*, I)

Dummy function to notify us something is wrong.

This will be called only if GPU device support is not built, so trying to access a device should indicate a bug in the code.

Returns:

Always return failure!