QMCPACK
hipBLAS.cpp File Reference
+ Include dependency graph for hipBLAS.cpp:

Go to the source code of this file.

Functions

hipblasStatus_t hipblasCgemmBatched (hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb, int m, int n, int k, const hipComplex *alpha, const hipComplex *const Aarray[], int lda, const hipComplex *const Barray[], int ldb, const hipComplex *beta, hipComplex *const Carray[], int ldc, int batchCount)
 
hipblasStatus_t hipblasZgemmBatched (hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb, int m, int n, int k, const hipDoubleComplex *alpha, const hipDoubleComplex *const Aarray[], int lda, const hipDoubleComplex *const Barray[], int ldb, const hipDoubleComplex *beta, hipDoubleComplex *const Carray[], int ldc, int batchCount)
 
hipblasStatus_t hipblasSgetrfBatched_ (hipblasHandle_t handle, int n, float *const A[], int lda, int *P, int *info, int batchSize)
 
hipblasStatus_t hipblasDgetrfBatched_ (hipblasHandle_t handle, int n, double *const A[], int lda, int *P, int *info, int batchSize)
 
hipblasStatus_t hipblasCgetrfBatched_ (hipblasHandle_t handle, int n, hipComplex *const A[], int lda, int *P, int *info, int batchSize)
 
hipblasStatus_t hipblasZgetrfBatched_ (hipblasHandle_t handle, int n, hipDoubleComplex *const A[], int lda, int *P, int *info, int batchSize)
 
hipblasStatus_t hipblasSgetriBatched_ (hipblasHandle_t handle, int n, const float *const A[], int lda, const int *P, float *const C[], int ldc, int *info, int batchSize)
 
hipblasStatus_t hipblasDgetriBatched_ (hipblasHandle_t handle, int n, const double *const A[], int lda, const int *P, double *const C[], int ldc, int *info, int batchSize)
 
hipblasStatus_t hipblasCgetriBatched_ (hipblasHandle_t handle, int n, const hipComplex *const A[], int lda, const int *P, hipComplex *const C[], int ldc, int *info, int batchSize)
 
hipblasStatus_t hipblasZgetriBatched_ (hipblasHandle_t handle, int n, const hipDoubleComplex *const A[], int lda, const int *P, hipDoubleComplex *const C[], int ldc, int *info, int batchSize)
 

Function Documentation

◆ hipblasCgemmBatched()

hipblasStatus_t hipblasCgemmBatched ( hipblasHandle_t  handle,
hipblasOperation_t  transa,
hipblasOperation_t  transb,
int  m,
int  n,
int  k,
const hipComplex *  alpha,
const hipComplex *const  Aarray[],
int  lda,
const hipComplex *const  Barray[],
int  ldb,
const hipComplex *  beta,
hipComplex *const  Carray[],
int  ldc,
int  batchCount 
)

Definition at line 20 of file hipBLAS.cpp.

References hipblasCgemmBatched(), qmcplusplus::lda, qmcplusplus::Units::distance::m, and qmcplusplus::n.

Referenced by hipblasCgemmBatched().

35 {
36  return hipblasCgemmBatched(handle, transa, transb, m, n, k, (const hipblasComplex*)alpha,
37  (const hipblasComplex* const*)Aarray, lda, (const hipblasComplex* const*)Barray, ldb,
38  (const hipblasComplex*)beta, (hipblasComplex* const*)Carray, ldc, batchCount);
39 }
hipblasStatus_t hipblasCgemmBatched(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb, int m, int n, int k, const hipComplex *alpha, const hipComplex *const Aarray[], int lda, const hipComplex *const Barray[], int ldb, const hipComplex *beta, hipComplex *const Carray[], int ldc, int batchCount)
Definition: hipBLAS.cpp:20

◆ hipblasCgetrfBatched_()

hipblasStatus_t hipblasCgetrfBatched_ ( hipblasHandle_t  handle,
int  n,
hipComplex *const  A[],
int  lda,
int *  P,
int *  info,
int  batchSize 
)

Definition at line 96 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::lda, and qmcplusplus::n.

103 {
104  if (!P)
105  throw std::runtime_error("hipblasXgetrfBatched_ pivot array cannot be a null pointer!");
106  return (hipblasStatus_t)rocsolver_cgetrf_batched((rocblas_handle)handle, (const rocblas_int)n, (const rocblas_int)n,
107  (rocblas_float_complex* const*)A, (const rocblas_int)lda,
108  (rocblas_int*)P, (const rocblas_stride)n, (rocblas_int*)info,
109  (const rocblas_int)batchSize);
110 }

◆ hipblasCgetriBatched_()

hipblasStatus_t hipblasCgetriBatched_ ( hipblasHandle_t  handle,
int  n,
const hipComplex *const  A[],
int  lda,
const int *  P,
hipComplex *const  C[],
int  ldc,
int *  info,
int  batchSize 
)

Definition at line 159 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::Units::charge::C, qmcplusplus::lda, and qmcplusplus::n.

168 {
169  if (!P)
170  throw std::runtime_error("hipblasXgetriBatched_ pivot array cannot be a null pointer!");
171  return hipblasCgetriBatched(handle, n, (hipblasComplex* const*)A, lda, (int*)P, (hipblasComplex* const*)C, ldc, info,
172  batchSize);
173 }

◆ hipblasDgetrfBatched_()

hipblasStatus_t hipblasDgetrfBatched_ ( hipblasHandle_t  handle,
int  n,
double *const  A[],
int  lda,
int *  P,
int *  info,
int  batchSize 
)

Definition at line 80 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::lda, and qmcplusplus::n.

87 {
88  if (!P)
89  throw std::runtime_error("hipblasXgetrfBatched_ pivot array cannot be a null pointer!");
90  return (hipblasStatus_t)rocsolver_dgetrf_batched((rocblas_handle)handle, (const rocblas_int)n, (const rocblas_int)n,
91  (double* const*)A, (const rocblas_int)lda, (rocblas_int*)P,
92  (const rocblas_stride)n, (rocblas_int*)info,
93  (const rocblas_int)batchSize);
94 }

◆ hipblasDgetriBatched_()

hipblasStatus_t hipblasDgetriBatched_ ( hipblasHandle_t  handle,
int  n,
const double *const  A[],
int  lda,
const int *  P,
double *const  C[],
int  ldc,
int *  info,
int  batchSize 
)

Definition at line 144 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::Units::charge::C, qmcplusplus::lda, and qmcplusplus::n.

153 {
154  if (!P)
155  throw std::runtime_error("hipblasXgetriBatched_ pivot array cannot be a null pointer!");
156  return hipblasDgetriBatched(handle, n, (double* const*)A, lda, (int*)P, (double* const*)C, ldc, info, batchSize);
157 }

◆ hipblasSgetrfBatched_()

hipblasStatus_t hipblasSgetrfBatched_ ( hipblasHandle_t  handle,
int  n,
float *const  A[],
int  lda,
int *  P,
int *  info,
int  batchSize 
)

Definition at line 64 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::lda, and qmcplusplus::n.

71 {
72  if (!P)
73  throw std::runtime_error("hipblasXgetrfBatched_ pivot array cannot be a null pointer!");
74  return (hipblasStatus_t)rocsolver_sgetrf_batched((rocblas_handle)handle, (const rocblas_int)n, (const rocblas_int)n,
75  (float* const*)A, (const rocblas_int)lda, (rocblas_int*)P,
76  (const rocblas_stride)n, (rocblas_int*)info,
77  (const rocblas_int)batchSize);
78 }

◆ hipblasSgetriBatched_()

hipblasStatus_t hipblasSgetriBatched_ ( hipblasHandle_t  handle,
int  n,
const float *const  A[],
int  lda,
const int *  P,
float *const  C[],
int  ldc,
int *  info,
int  batchSize 
)

Definition at line 129 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::Units::charge::C, qmcplusplus::lda, and qmcplusplus::n.

138 {
139  if (!P)
140  throw std::runtime_error("hipblasXgetriBatched_ pivot array cannot be a null pointer!");
141  return hipblasSgetriBatched(handle, n, (float* const*)A, lda, (int*)P, (float* const*)C, ldc, info, batchSize);
142 }

◆ hipblasZgemmBatched()

hipblasStatus_t hipblasZgemmBatched ( hipblasHandle_t  handle,
hipblasOperation_t  transa,
hipblasOperation_t  transb,
int  m,
int  n,
int  k,
const hipDoubleComplex *  alpha,
const hipDoubleComplex *const  Aarray[],
int  lda,
const hipDoubleComplex *const  Barray[],
int  ldb,
const hipDoubleComplex *  beta,
hipDoubleComplex *const  Carray[],
int  ldc,
int  batchCount 
)

Definition at line 41 of file hipBLAS.cpp.

References hipblasZgemmBatched(), qmcplusplus::lda, qmcplusplus::Units::distance::m, and qmcplusplus::n.

Referenced by hipblasZgemmBatched().

56 {
57  return hipblasZgemmBatched(handle, transa, transb, m, n, k, (const hipblasDoubleComplex*)alpha,
58  (const hipblasDoubleComplex* const*)Aarray, lda,
59  (const hipblasDoubleComplex* const*)Barray, ldb, (const hipblasDoubleComplex*)beta,
60  (hipblasDoubleComplex* const*)Carray, ldc, batchCount);
61 }
hipblasStatus_t hipblasZgemmBatched(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb, int m, int n, int k, const hipDoubleComplex *alpha, const hipDoubleComplex *const Aarray[], int lda, const hipDoubleComplex *const Barray[], int ldb, const hipDoubleComplex *beta, hipDoubleComplex *const Carray[], int ldc, int batchCount)
Definition: hipBLAS.cpp:41

◆ hipblasZgetrfBatched_()

hipblasStatus_t hipblasZgetrfBatched_ ( hipblasHandle_t  handle,
int  n,
hipDoubleComplex *const  A[],
int  lda,
int *  P,
int *  info,
int  batchSize 
)

Definition at line 112 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::lda, and qmcplusplus::n.

119 {
120  if (!P)
121  throw std::runtime_error("hipblasXgetrfBatched_ pivot array cannot be a null pointer!");
122  return (hipblasStatus_t)rocsolver_zgetrf_batched((rocblas_handle)handle, (const rocblas_int)n, (const rocblas_int)n,
123  (rocblas_double_complex* const*)A, (const rocblas_int)lda,
124  (rocblas_int*)P, (const rocblas_stride)n, (rocblas_int*)info,
125  (const rocblas_int)batchSize);
126 }

◆ hipblasZgetriBatched_()

hipblasStatus_t hipblasZgetriBatched_ ( hipblasHandle_t  handle,
int  n,
const hipDoubleComplex *const  A[],
int  lda,
const int *  P,
hipDoubleComplex *const  C[],
int  ldc,
int *  info,
int  batchSize 
)

Definition at line 175 of file hipBLAS.cpp.

References qmcplusplus::Units::distance::A, qmcplusplus::Units::charge::C, qmcplusplus::lda, and qmcplusplus::n.

184 {
185  if (!P)
186  throw std::runtime_error("hipblasXgetriBatched_ pivot array cannot be a null pointer!");
187  return hipblasZgetriBatched(handle, n, (hipblasDoubleComplex* const*)A, lda, (int*)P, (hipblasDoubleComplex* const*)C,
188  ldc, info, batchSize);
189 }