rocblas_dotc_strided_batched_ex Interface Reference#
hipfort_rocblas::rocblas_dotc_strided_batched_ex Interface Reference
BLAS EX API. More...
Public Member Functions | |
| integer(kind(rocblas_status_success)) function | rocblas_dotc_strided_batched_ex_ (handle, n, x, x_type, incx, stride_x, y, y_type, incy, stride_y, batch_count, myresult, result_type, execution_type) |
Detailed Description
BLAS EX API.
The dotc_strided_batched_ex functions perform a batch of dot products of the conjugate of complex vector x and complex vector y:
result_i = conjugate (x_i) * y_i;
where (x_i, y_i) is the i-th instance of the batch. x_i and y_i are vectors, for i = 1, ..., batch_count.
Currently supported datatypes are as follows:
| x_type | y_type | result_type | execution_type |
|---|---|---|---|
| f16_r | f16_r | f16_r | f16_r |
| f16_r | f16_r | f16_r | f32_r |
| bf16_r | bf16_r | bf16_r | f32_r |
| f32_r | f32_r | f32_r | f32_r |
| f32_r | f32_r | f64_r | f64_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] x - device pointer to the first vector (x_1) in the batch. [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] stride_x - [rocblas_stride] stride from the start of one vector (x_i) to the next one (x_i+1). [in] y - device pointer to the first vector (y_1) in the batch. [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] stride_y - [rocblas_stride] stride from the start of one vector (y_i) to the next one (y_i+1). [in] batch_count - [rocblas_int] number of instances in the batch. [in,out] myResult device array or host array of batch_count size to store the dot products of each batch. Returns 0.0 for each element if n <= 0. [in] result_type - [rocblas_datatype] specifies the datatype of the result. [in] execution_type - [rocblas_datatype] specifies the datatype of computation.
Member Function/Subroutine Documentation
◆ rocblas_dotc_strided_batched_ex_()
| integer(kind(rocblas_status_success)) function hipfort_rocblas::rocblas_dotc_strided_batched_ex::rocblas_dotc_strided_batched_ex_ | ( | type(c_ptr), value | handle, |
| integer(c_int), value | n, | ||
| type(c_ptr), value | x, | ||
| integer(kind(rocblas_datatype_f16_r)), value | x_type, | ||
| integer(c_int), value | incx, | ||
| integer(c_int64_t), value | stride_x, | ||
| type(c_ptr), value | y, | ||
| integer(kind(rocblas_datatype_f16_r)), value | y_type, | ||
| integer(c_int), value | incy, | ||
| integer(c_int64_t), value | stride_y, | ||
| integer(c_int), value | batch_count, | ||
| type(c_ptr), value | myresult, | ||
| integer(kind(rocblas_datatype_f16_r)), value | result_type, | ||
| integer(kind(rocblas_datatype_f16_r)), value | execution_type | ||
| ) |
The documentation for this interface was generated from the following file: