rocblas_axpy_strided_batched_ex Interface Reference#
hipfort_rocblas::rocblas_axpy_strided_batched_ex Interface Reference
BLAS EX API. More...
Public Member Functions | |
| integer(c_int) function | rocblas_axpy_strided_batched_ex_ (handle, n, alpha, alpha_type, x, x_type, incx, stridex, y, y_type, incy, stridey, batch_count, execution_type) |
Detailed Description
BLAS EX API.
The axpy_strided_batched_ex function computes constant alpha multiplied by vector x plus vector y over a set of strided batched vectors.
y := alpha * x + y
Currently supported datatypes are as follows:
| alpha_type | x_type | y_type | execution_type |
|---|---|---|---|
| bf16_r | bf16_r | bf16_r | f32_r |
| f32_r | bf16_r | bf16_r | f32_r |
| f16_r | f16_r | f16_r | f16_r |
| f16_r | f16_r | f16_r | f32_r |
| f32_r | f16_r | f16_r | f32_r |
| f32_r | f32_r | f32_r | f32_r |
| f64_r | f64_r | f64_r | f64_r |
| f32_c | f32_c | f32_c | f32_c |
| f64_c | f64_c | f64_c | f64_c |
- Parameters
-
[in] handle - [rocblas_handle] handle to the rocBLAS library context queue. [in] n - [rocblas_int] the number of elements in each x_i and y_i. [in] alpha - device pointer or host pointer to specify the scalar alpha. [in] alpha_type - [rocblas_datatype] specifies the datatype of alpha. [in] x - device pointer to the first vector x_1. [in] x_type - [rocblas_datatype] specifies the datatype of each vector x_i. [in] incx - [rocblas_int] specifies the increment for the elements of each x_i. [in] stridex - [rocblas_stride] stride from the start of one vector (x_i) to the next one (x_i+1). There are no restrictions placed on stridex. However, ensure that stridex is of an appropriate size. For a typical case, this means stridex >= n * incx. [in,out] y - device pointer to the first vector y_1. [in] y_type - [rocblas_datatype] specifies the datatype of each vector y_i. [in] incy - [rocblas_int] specifies the increment for the elements of each y_i. [in] stridey - [rocblas_stride] stride from the start of one vector (y_i) to the next one (y_i+1). There are no restrictions placed on stridey. However, ensure that stridey is of an appropriate size. For a typical case, this means stridey >= n * incy. [in] batch_count - [rocblas_int] number of instances in the batch. [in] execution_type - [rocblas_datatype] specifies the datatype of computation.
Member Function/Subroutine Documentation
◆ rocblas_axpy_strided_batched_ex_()
| integer(c_int) function hipfort_rocblas::rocblas_axpy_strided_batched_ex::rocblas_axpy_strided_batched_ex_ | ( | type(c_ptr), value | handle, |
| integer(c_int), value | n, | ||
| type(c_ptr), value | alpha, | ||
| integer(c_int), value | alpha_type, | ||
| type(c_ptr), value | x, | ||
| integer(c_int), value | x_type, | ||
| integer(c_int), value | incx, | ||
| integer(c_int64_t), value | stridex, | ||
| type(c_ptr), value | y, | ||
| integer(c_int), value | y_type, | ||
| integer(c_int), value | incy, | ||
| integer(c_int64_t), value | stridey, | ||
| integer(c_int), value | batch_count, | ||
| integer(c_int), value | execution_type | ||
| ) |
The documentation for this interface was generated from the following file: