Group propsΒΆ
-
group
props Defines
-
GA_CTX_PROP_DEVNAME1 Get the device name for the context.
Type:
char [256]
-
GA_CTX_PROP_MAXLSIZE2 Get the maximum block size (also known as local size) for a kernel call in the context.
Type:
size_t
-
GA_CTX_PROP_LMEMSIZE3 Get the local memory size available for a call in the context.
Type:
size_t
-
GA_CTX_PROP_NUMPROCS4 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_MAXGSIZE5 Get the maximum group size for a kernel call in this context.
Type:
size_t
-
GA_CTX_PROP_BLAS_OPS6 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_ID7 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_ERRBUF8 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_GMEM9 Get the total size of global memory on the device.
Type:
size_t
-
GA_CTX_PROP_FREE_GMEM10 Get the size of free global memory on the device.
Type:
size_t
-
GA_CTX_PROP_NATIVE_FLOAT1611 Get the status of native float16 support on the device.
Type:
int
-
GA_CTX_PROP_MAXGSIZE012 Get the maximum global size for dimension 0.
Type:
size_t
-
GA_CTX_PROP_MAXGSIZE113 Get the maximum global size for dimension 1.
Type:
size_t
-
GA_CTX_PROP_MAXGSIZE214 Get the maximum global size for dimension 2.
Type:
size_t
-
GA_CTX_PROP_MAXLSIZE015 Get the maximum local size for dimension 0.
Type:
size_t
-
GA_CTX_PROP_MAXLSIZE116 Get the maximum local size for dimension 1.
Type:
size_t
-
GA_CTX_PROP_MAXLSIZE217 Get the maximum loca size for dimension 2.
Type:
size_t
-
GA_CTX_PROP_COMM_OPS18 Get the vector of collective ops for the context.
Type:
const gpuarray_comm_ops *
-
GA_CTX_PROP_PCIBUSID19 Get the device PCI Bus ID for the context.
Type:
char [16]
-
GA_CTX_PROP_LARGEST_MEMBLOCK20 Get the largest single block of memory that can be allocted.
Type:
size_t
-
GA_BUFFER_PROP_START512
-
GA_BUFFER_PROP_CTX512 Get the context in which this buffer was allocated.
Type:
gpucontext *
-
GA_BUFFER_PROP_REFCNT513 The reference count of the buffer. Use only for debugging purposes.
Type:
unsigned int
-
GA_BUFFER_PROP_SIZE514 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_START1024
-
GA_KERNEL_PROP_CTX1024 Get the context for which this kernel was compiled.
Type:
gpucontext *
-
GA_KERNEL_PROP_MAXLSIZE1025 Get the maximum block size (also known as local size) for a call of this kernel.
Type:
size_t
-
GA_KERNEL_PROP_PREFLSIZE1026 Get the prefered multiple of the block size for a call to this kernel.
Type:
size_t
-
GA_KERNEL_PROP_NUMARGS1027 Get the number of kernel arguments.
Type
unsigned int
-
GA_KERNEL_PROP_TYPES1028 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 *
-