Group alloc_flagsΒΆ
-
group
alloc_flags
Defines
-
GA_BUFFER_READ_WRITE
The buffer is available for reading and writing from kernels.
This is the default (0) value.
-
GA_BUFFER_DEV
Allocate the buffer in device-only memory.
This is the default (0) value.
-
GA_BUFFER_READ_ONLY
Signal that the memory in this buffer will only be read by kernels.
You can use gpudata_write() to set the contents.
You may not call gpudata_memset() with the resulting buffer as the destination.
-
GA_BUFFER_WRITE_ONLY
Signal that the memory in this buffer will only be written by kernels (i.e. it is an output buffer).
You can read the contents with gpudata_read().
-
GA_BUFFER_INIT
Initialize the contents of the buffer with the user-supplied host buffer (
data
). This buffer must be at leastsz
large.
-
GA_BUFFER_HOST
Allocate the buffer in host-reachable memory enabling you to retrieve a pointer to the contents as the
GA_BUFFER_PROP_HOSTPOINTER
property.
-
GA_BUFFER_MASK
-