hipblassswapstridedbatched Interface Reference

hipblassswapstridedbatched Interface Reference#

HIPFORT API Reference: hipfort_hipblas::hipblassswapstridedbatched Interface Reference
hipfort_hipblas::hipblassswapstridedbatched Interface Reference

BLAS Level 1 API. More...

Public Member Functions

integer(kind(hipblas_status_success)) function hipblassswapstridedbatched_ (handle, n, x, incx, stridex, y, incy, stridey, batchcount)
 
integer(kind(hipblas_status_success)) function hipblassswapstridedbatched_rank_0 (handle, n, x, incx, stridex, y, incy, stridey, batchcount)
 
integer(kind(hipblas_status_success)) function hipblassswapstridedbatched_rank_1 (handle, n, x, incx, stridex, y, incy, stridey, batchcount)
 

Detailed Description

BLAS Level 1 API.

The swapStridedBatched functions interchange vectors x_i and y_i, for i = 1 , ... , batchCount.

y_i := x_i; x_i := y_i
  • Supported precisions in rocBLAS : s, d, c, and z.
  • Supported precisions in cuBLAS : No support.
Parameters
[in]handle- [hipblasHandle_t] handle to the hipBLAS library context queue.
[in]n- [int] the number of elements in each x_i and y_i.
[in,out]x- device pointer to the first vector x_1.
[in]incx- [int] specifies the increment for the elements of x.
[in]stridex- [hipblasStride] stride from the start of one vector (x_i) to the next one (x_i+1). There are no restrictions placed on stridex. However, the user should 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]incy- [int] specifies the increment for the elements of y.
[in]stridey- [hipblasStride] stride from the start of one vector (y_i) to the next one (y_i+1). There are no restrictions placed on stridey. However, the user should ensure that stridey is of an appropriate size. For a typical case, this means stridey >= n * incy. stridey should be non zero.
[in]batchCount- [int] number of instances in the batch.

Member Function/Subroutine Documentation

◆ hipblassswapstridedbatched_()

integer(kind(hipblas_status_success)) function hipfort_hipblas::hipblassswapstridedbatched::hipblassswapstridedbatched_ ( type(c_ptr), value  handle,
integer(c_int), value  n,
type(c_ptr), value  x,
integer(c_int), value  incx,
integer(c_int64_t), value  stridex,
type(c_ptr), value  y,
integer(c_int), value  incy,
integer(c_int64_t), value  stridey,
integer(c_int), value  batchcount 
)

◆ hipblassswapstridedbatched_rank_0()

integer(kind(hipblas_status_success)) function hipfort_hipblas::hipblassswapstridedbatched::hipblassswapstridedbatched_rank_0 ( type(c_ptr)  handle,
integer(c_int)  n,
real(c_float), target  x,
integer(c_int)  incx,
integer(c_int64_t)  stridex,
real(c_float), target  y,
integer(c_int)  incy,
integer(c_int64_t)  stridey,
integer(c_int)  batchcount 
)

◆ hipblassswapstridedbatched_rank_1()

integer(kind(hipblas_status_success)) function hipfort_hipblas::hipblassswapstridedbatched::hipblassswapstridedbatched_rank_1 ( type(c_ptr)  handle,
integer(c_int)  n,
real(c_float), dimension(:), target  x,
integer(c_int)  incx,
integer(c_int64_t)  stridex,
real(c_float), dimension(:), target  y,
integer(c_int)  incy,
integer(c_int64_t)  stridey,
integer(c_int)  batchcount 
)

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