This is an old version of ROCm documentation. Read the latest ROCm release documentation to stay informed of all our developments.

rocBLAS Datatypes#

rocblas_handle#

typedef struct _rocblas_handle *rocblas_handle#

rocblas_handle is a structure holding the rocblas library context. It must be initialized using rocblas_create_handle(), and the returned handle must be passed to all subsequent library function calls. It should be destroyed at the end using rocblas_destroy_handle().

rocblas_int#

typedef int32_t rocblas_int#

To specify whether int32 is used for LP64 or int64 is used for ILP64. This define should be considered deprecated as being supplanted by additional interfaces and was never tested.

rocblas_stride#

typedef int64_t rocblas_stride#

Stride between matrices or vectors in strided_batched functions.

rocblas_half#

struct rocblas_half#

Structure definition for rocblas_half.

rocblas_bfloat16#

struct rocblas_bfloat16#

Struct to represent a 16 bit Brain floating-point number.

rocblas_float_complex#

struct rocblas_float_complex#

Struct to represent a complex number with single precision real and imaginary parts.

rocblas_double_complex#

struct rocblas_double_complex#

Struct to represent a complex number with double precision real and imaginary parts.