hipblassspmv Interface Reference

hipblassspmv Interface Reference#

HIPFORT API Reference: hipfort_hipblas::hipblassspmv Interface Reference
hipfort_hipblas::hipblassspmv Interface Reference

BLAS Level 2 API. More...

Public Member Functions

integer(kind(hipblas_status_success)) function hipblassspmv_ (handle, uplo, n, alpha, ap, x, incx, beta, y, incy)
 
integer(kind(hipblas_status_success)) function hipblassspmv_rank_0 (handle, uplo, n, alpha, ap, x, incx, beta, y, incy)
 
integer(kind(hipblas_status_success)) function hipblassspmv_rank_1 (handle, uplo, n, alpha, ap, x, incx, beta, y, incy)
 

Detailed Description

BLAS Level 2 API.

The spmv functions perform the matrix-vector operation:

y := alpha*A*x + beta*y,

where alpha and beta are scalars, x and y are n-element vectors, and A should contain an upper or lower triangular n by n packed symmetric matrix.

  • Supported precisions in rocBLAS : s and d.
  • Supported precisions in cuBLAS : s and d.
Parameters
[in]handle- [hipblasHandle_t] handle to the hipBLAS library context queue.
[in]uplo- [hipblasFillMode_t] specifies either upper (HIPBLAS_FILL_MODE_UPPER) or lower (HIPBLAS_FILL_MODE_LOWER):
  • If HIPBLAS_FILL_MODE_UPPER, the lower part of A is not referenced.
  • If HIPBLAS_FILL_MODE_LOWER, the upper part of A is not referenced.
[in]n- [int]
[in]alphaspecifies the scalar alpha.
[in]AP- pointer storing matrix A on the GPU.
[in]x- pointer storing vector x on the GPU.
[in]incx- [int] specifies the increment for the elements of x.
[in]beta- specifies the scalar beta.
[out]y- pointer storing vector y on the GPU.
[in]incy- [int] specifies the increment for the elements of y.

Member Function/Subroutine Documentation

◆ hipblassspmv_()

integer(kind(hipblas_status_success)) function hipfort_hipblas::hipblassspmv::hipblassspmv_ ( type(c_ptr), value  handle,
integer(kind(hipblas_fill_mode_upper)), value  uplo,
integer(c_int), value  n,
real(c_float)  alpha,
type(c_ptr), value  ap,
type(c_ptr), value  x,
integer(c_int), value  incx,
real(c_float)  beta,
type(c_ptr), value  y,
integer(c_int), value  incy 
)

◆ hipblassspmv_rank_0()

integer(kind(hipblas_status_success)) function hipfort_hipblas::hipblassspmv::hipblassspmv_rank_0 ( type(c_ptr)  handle,
integer(kind(hipblas_fill_mode_upper))  uplo,
integer(c_int)  n,
real(c_float)  alpha,
real(c_float), target  ap,
real(c_float), target  x,
integer(c_int)  incx,
real(c_float)  beta,
real(c_float), target  y,
integer(c_int)  incy 
)

◆ hipblassspmv_rank_1()

integer(kind(hipblas_status_success)) function hipfort_hipblas::hipblassspmv::hipblassspmv_rank_1 ( type(c_ptr)  handle,
integer(kind(hipblas_fill_mode_upper))  uplo,
integer(c_int)  n,
real(c_float)  alpha,
real(c_float), dimension(:), target  ap,
real(c_float), dimension(:), target  x,
integer(c_int)  incx,
real(c_float)  beta,
real(c_float), dimension(:), target  y,
integer(c_int)  incy 
)

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