rocblas_gemm_strided_batched_ex Interface Reference

rocblas_gemm_strided_batched_ex Interface Reference#

hipFORT API Reference: hipfort_rocblas::rocblas_gemm_strided_batched_ex Interface Reference
hipfort_rocblas::rocblas_gemm_strided_batched_ex Interface Reference

BLAS EX API. More...

Public Member Functions

integer(c_int) function rocblas_gemm_strided_batched_ex_ (handle, transa, transb, m, n, k, alpha, a, a_type, lda, stride_a, b, b_type, ldb, stride_b, beta, c, c_type, ldc, stride_c, d, d_type, ldd, stride_d, batch_count, compute_type, algo, solution_index, flags)
 

Detailed Description

BLAS EX API.

The gemm_strided_batched_ex functions perform one of the strided_batched matrix-matrix operations:

D_i = alpha*op(A_i)*op(B_i) + beta*C_i, for i = 1, ..., batch_count

where op( X ) is one of

op( X ) = X      or
op( X ) = X**T   or
op( X ) = X**H,

alpha and beta are scalars, and A, B, C, and D are strided_batched matrices, with op( A ) an m by k by batch_count strided_batched matrix, op( B ) a k by n by batch_count strided_batched matrix, and C and D both m by n by batch_count strided_batched matrices. C and D can point to the same matrices if their parameters are identical.

The strided_batched matrices are multiple matrices separated by a constant stride. The number of matrices is batch_count.

Supported types are as follows:

  • rocblas_datatype_f64_r = a_type = b_type = c_type = d_type = compute_type
  • rocblas_datatype_f32_r = a_type = b_type = c_type = d_type = compute_type
  • rocblas_datatype_f16_r = a_type = b_type = c_type = d_type = compute_type
  • rocblas_datatype_f16_r = a_type = b_type = c_type = d_type; rocblas_datatype_f32_r = compute_type
  • rocblas_datatype_bf16_r = a_type = b_type = c_type = d_type; rocblas_datatype_f32_r = compute_type
  • rocblas_datatype_i8_r = a_type = b_type; rocblas_datatype_i32_r = c_type = d_type = compute_type
  • rocblas_datatype_f32_c = a_type = b_type = c_type = d_type = compute_type
  • rocblas_datatype_f64_c = a_type = b_type = c_type = d_type = compute_type
Parameters
[in]handle- [rocblas_handle] handle to the rocBLAS library context queue.
[in]transA- [rocblas_operation] specifies the form of op( A ).
[in]transB- [rocblas_operation] specifies the form of op( B ).
[in]m- [rocblas_int] matrix dimension m.
[in]n- [rocblas_int] matrix dimension n.
[in]k- [rocblas_int] matrix dimension k.
[in]alpha- [const void *] device pointer or host pointer specifying the scalar alpha. Same datatype as compute_type.
[in]a- [void *] device pointer pointing to first matrix A_1.
[in]a_type- [rocblas_datatype] specifies the datatype of each matrix A_i.
[in]lda- [rocblas_int] specifies the leading dimension of each A_i.
[in]stride_a- [rocblas_stride] specifies stride from start of one A_i matrix to the next A_(i + 1).
[in]b- [void *] device pointer pointing to first matrix B_1.
[in]b_type- [rocblas_datatype] specifies the datatype of each matrix B_i.
[in]ldb- [rocblas_int] specifies the leading dimension of each B_i.
[in]stride_b- [rocblas_stride] specifies stride from start of one B_i matrix to the next B_(i + 1).
[in]beta- [const void *] device pointer or host pointer specifying the scalar beta. Same datatype as compute_type.
[in]c- [void *] device pointer pointing to first matrix C_1.
[in]c_type- [rocblas_datatype] specifies the datatype of each matrix C_i.
[in]ldc- [rocblas_int] specifies the leading dimension of each C_i.
[in]stride_c- [rocblas_stride] specifies stride from start of one C_i matrix to the next C_(i + 1).
[out]d- [void *] device pointer storing each matrix D_i. If d and c pointers are to the same matrix, then d_type must equal c_type, ldd must equal ldc, and stride_d must equal stride_c or the respective invalid status will be returned.
[in]d_type- [rocblas_datatype] specifies the datatype of each matrix D_i.
[in]ldd- [rocblas_int] specifies the leading dimension of each D_i.
[in]stride_d- [rocblas_stride] specifies stride from start of one D_i matrix to the next D_(i + 1).
[in]batch_count[rocblas_int] number of gemm operations in the batch.
[in]compute_type[rocblas_datatype] specifies the datatype of computation.
[in]algo- [rocblas_gemm_algo] enumerant specifying the algorithm type.
[in]solution_index[int32_t] if algo is rocblas_gemm_algo_solution_index, this controls which solution is used. When algo is not rocblas_gemm_algo_solution_index, or if solution_index = 0, the default solution is used. Passing rocblas_gemm_algo_solution_index and solution_index < 0 to use the default solution is deprecated.
[in]flags- [uint32_t] optional gemm flags.

Member Function/Subroutine Documentation

◆ rocblas_gemm_strided_batched_ex_()

integer(c_int) function hipfort_rocblas::rocblas_gemm_strided_batched_ex::rocblas_gemm_strided_batched_ex_ ( type(c_ptr), value  handle,
integer(c_int), value  transa,
integer(c_int), value  transb,
integer(c_int), value  m,
integer(c_int), value  n,
integer(c_int), value  k,
type(c_ptr), value  alpha,
type(c_ptr), value  a,
integer(c_int), value  a_type,
integer(c_int), value  lda,
integer(c_int64_t), value  stride_a,
type(c_ptr), value  b,
integer(c_int), value  b_type,
integer(c_int), value  ldb,
integer(c_int64_t), value  stride_b,
type(c_ptr), value  beta,
type(c_ptr), value  c,
integer(c_int), value  c_type,
integer(c_int), value  ldc,
integer(c_int64_t), value  stride_c,
type(c_ptr), value  d,
integer(c_int), value  d_type,
integer(c_int), value  ldd,
integer(c_int64_t), value  stride_d,
integer(c_int), value  batch_count,
integer(c_int), value  compute_type,
integer(c_int), value  algo,
integer(c_int32_t), value  solution_index,
integer(c_int32_t), value  flags 
)

The documentation for this interface was generated from the following file: