This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

rocblas_zrotg_batched Interface Reference

rocblas_zrotg_batched Interface Reference#

HIPFORT API Reference: hipfort_rocblas::rocblas_zrotg_batched Interface Reference
hipfort_rocblas::rocblas_zrotg_batched Interface Reference

BLAS Level 1 API. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocblas_zrotg_batched_ (handle, a, b, c, s, batch_count)
 

Detailed Description

BLAS Level 1 API.

rotg_batched creates the Givens rotation matrix for the batched vectors (a_i b_i), for i = 1, ..., batch_count. a, b, c, and s may be stored in either host or device memory, location is specified by calling rocblas_set_pointer_mode. If the pointer mode is set to rocblas_pointer_mode_host, this function blocks the CPU until the GPU has finished and the results are available in host memory. If the pointer mode is set to rocblas_pointer_mode_device, this function returns immediately and synchronization is required to read the results.

Parameters
[in]handle[rocblas_handle] handle to the rocblas library context queue.
[in,out]adevice array of device pointers storing each single input vector element a_i, overwritten with r_i.
[in,out]bdevice array of device pointers storing each single input vector element b_i, overwritten with z_i.
[in,out]cdevice array of device pointers storing each cosine element of Givens rotation for the batch.
[in,out]sdevice array of device pointers storing each sine element of Givens rotation for the batch.
[in]batch_count[rocblas_int] number of batches (length of arrays a, b, c, and s).

Member Function/Subroutine Documentation

◆ rocblas_zrotg_batched_()

integer(kind(rocblas_status_success)) function hipfort_rocblas::rocblas_zrotg_batched::rocblas_zrotg_batched_ ( type(c_ptr), value  handle,
type(c_ptr)  a,
type(c_ptr)  b,
type(c_ptr)  c,
type(c_ptr)  s,
integer(c_int), value  batch_count 
)

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