Group propsΒΆ

group props

Defines

GA_CTX_PROP_DEVNAME 1

Get the device name for the context.

Type: char [256]

GA_CTX_PROP_MAXLSIZE 2

Get the maximum block size (also known as local size) for a kernel call in the context.

Type: size_t

GA_CTX_PROP_LMEMSIZE 3

Get the local memory size available for a call in the context.

Type: size_t

GA_CTX_PROP_NUMPROCS 4

Number of compute units in this context.

compute units times local size is more or less the expected parallelism available on the device, but this is a very rough estimate.

Type: unsigned int

GA_CTX_PROP_MAXGSIZE 5

Get the maximum group size for a kernel call in this context.

Type: size_t

GA_CTX_PROP_BLAS_OPS 6

Get the vector of blas ops for the context.

This may differ from one context to the other in the same backend depending of the availability and performance of various BLAS libraries.

Type: const gpuarray_blas_ops *

GA_CTX_PROP_BIN_ID 7

Get the compatibility ID for the binaries generated with this context.

Those binaries should work with any context which has the same ID.

Type: const char *

GA_CTX_PROP_ERRBUF 8

Get a pre-allocated 8 byte buffer for kernel ops.

This buffer is initialized to 0 on allocation and must always be returned to that state after using it.

This only to avoid the overhead of an allocation when calling a kernel that may error out. It does not preclude the need for synchronization and transfers.

Type: gpudata *

GA_CTX_PROP_TOTAL_GMEM 9

Get the total size of global memory on the device.

Type: size_t

GA_CTX_PROP_FREE_GMEM 10

Get the size of free global memory on the device.

Type: size_t

GA_CTX_PROP_NATIVE_FLOAT16 11

Get the status of native float16 support on the device.

Type: int

GA_CTX_PROP_MAXGSIZE0 12

Get the maximum global size for dimension 0.

Type: size_t

GA_CTX_PROP_MAXGSIZE1 13

Get the maximum global size for dimension 1.

Type: size_t

GA_CTX_PROP_MAXGSIZE2 14

Get the maximum global size for dimension 2.

Type: size_t

GA_CTX_PROP_MAXLSIZE0 15

Get the maximum local size for dimension 0.

Type: size_t

GA_CTX_PROP_MAXLSIZE1 16

Get the maximum local size for dimension 1.

Type: size_t

GA_CTX_PROP_MAXLSIZE2 17

Get the maximum loca size for dimension 2.

Type: size_t

GA_CTX_PROP_COMM_OPS 18

Get the vector of collective ops for the context.

Type: const gpuarray_comm_ops *

GA_CTX_PROP_PCIBUSID 19

Get the device PCI Bus ID for the context.

Type: char [16]

GA_CTX_PROP_LARGEST_MEMBLOCK 20

Get the largest single block of memory that can be allocted.

Type: size_t

GA_BUFFER_PROP_START 512
GA_BUFFER_PROP_CTX 512

Get the context in which this buffer was allocated.

Type: gpucontext *

GA_BUFFER_PROP_REFCNT 513

The reference count of the buffer. Use only for debugging purposes.

Type: unsigned int

GA_BUFFER_PROP_SIZE 514

Size of the buffer on the device.

This may be larger than the requested allocation size due to a number of factors.

Type: size_t

GA_KERNEL_PROP_START 1024
GA_KERNEL_PROP_CTX 1024

Get the context for which this kernel was compiled.

Type: gpucontext *

GA_KERNEL_PROP_MAXLSIZE 1025

Get the maximum block size (also known as local size) for a call of this kernel.

Type: size_t

GA_KERNEL_PROP_PREFLSIZE 1026

Get the prefered multiple of the block size for a call to this kernel.

Type: size_t

GA_KERNEL_PROP_NUMARGS 1027

Get the number of kernel arguments.

Type unsigned int

GA_KERNEL_PROP_TYPES 1028

Get the list of argument types for a kernel.

This list is the same length as the number of arguments to the kernel. Do not modify the returned list.

Type: const int *