gocl-decls

gocl-decls — Global symbols used throughout Gocl API

Stability Level

Unstable, unless otherwise indicated

Types and Values

Description

Declarations common to Gocl classes. These symbols often map OpenCL symbols directly.

Functions

Types and Values

enum GoclDeviceType

Members

GOCL_DEVICE_TYPE_DEFAULT

Default device

 

GOCL_DEVICE_TYPE_CPU

CPU device

 

GOCL_DEVICE_TYPE_GPU

GPU device

 

GOCL_DEVICE_TYPE_ACCELERATOR

Accelerator device

 

GOCL_DEVICE_TYPE_ALL

Any device

 

enum GoclBufferFlags

Members

GOCL_BUFFER_FLAGS_READ_WRITE

The buffer can be read and written by a kernel. This is the default.

 

GOCL_BUFFER_FLAGS_WRITE_ONLY

The buffer can be written but not read by a kernel. Reading from the buffer inside a kernel is undefined.

 

GOCL_BUFFER_FLAGS_READ_ONLY

The buffer can be read but not written by a kernel. Writing to the buffer inside a kernel is undefined.

 

GOCL_BUFFER_FLAGS_USE_HOST_PTR

The buffer is initialized with the data referenced by the provided host memory pointer.

 

GOCL_BUFFER_FLAGS_ALLOC_HOST_PTR

The buffer is allocated from host accessible memory.

 

GOCL_BUFFER_FLAGS_COPY_HOST_PTR

The buffer is allocated from host accessible memory, and initialized with the data referenced by the provided host memory pointer.

 

enum GoclQueueFlags

Members

GOCL_QUEUE_FLAGS_OUT_OF_ORDER

Enables out-of-order execution of commands.

 

GOCL_QUEUE_FLAGS_PROFILING

Enables profiling of commands.

 

enum GoclImageType

Members

GOCL_IMAGE_TYPE_1D

Unidimensional image

 

GOCL_IMAGE_TYPE_1D_BUFFER

Unidimensional buffer image

 

GOCL_IMAGE_TYPE_1D_ARRAY

Array of unidimensional images

 

GOCL_IMAGE_TYPE_2D

Bidimensional image

 

GOCL_IMAGE_TYPE_2D_ARRAY

Array of bidimensional images

 

GOCL_IMAGE_TYPE_3D

Tridimensional image