Skip to content

Commit 79607ca

Browse files
committed
Avoid PPCG dependency on hegvd wrapper change
1 parent 3aff00c commit 79607ca

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

source/source_base/module_container/base/third_party/lapack.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void hegvd(const int itype, const char jobz, const char uplo, const int n,
228228
float* a, const int lda,
229229
float* b, const int ldb, float* w,
230230
float* work, int lwork, float* rwork, int lrwork,
231-
int* iwork, int liwork, int& info)
231+
int* iwork, int liwork, int info)
232232
{
233233
// call the fortran routine
234234
ssygvd_(&itype, &jobz, &uplo, &n,
@@ -242,7 +242,7 @@ void hegvd(const int itype, const char jobz, const char uplo, const int n,
242242
double* a, const int lda,
243243
double* b, const int ldb, double* w,
244244
double* work, int lwork, double* rwork, int lrwork,
245-
int* iwork, int liwork, int& info)
245+
int* iwork, int liwork, int info)
246246
{
247247
// call the fortran routine
248248
dsygvd_(&itype, &jobz, &uplo, &n,
@@ -255,7 +255,7 @@ void hegvd(const int itype, const char jobz, const char uplo, const int n,
255255
std::complex<float>* a, const int lda,
256256
std::complex<float>* b, const int ldb, float* w,
257257
std::complex<float>* work, int lwork, float* rwork, int lrwork,
258-
int* iwork, int liwork, int& info)
258+
int* iwork, int liwork, int info)
259259
{
260260
// call the fortran routine
261261
chegvd_(&itype, &jobz, &uplo, &n,
@@ -269,7 +269,7 @@ void hegvd(const int itype, const char jobz, const char uplo, const int n,
269269
std::complex<double>* a, const int lda,
270270
std::complex<double>* b, const int ldb, double* w,
271271
std::complex<double>* work, int lwork, double* rwork, int lrwork,
272-
int* iwork, int liwork, int& info)
272+
int* iwork, int liwork, int info)
273273
{
274274
// call the fortran routine
275275
zhegvd_(&itype, &jobz, &uplo, &n,

source/source_hsolver/diago_ppcg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Real max_generalized_residual(
4040
template <typename T>
4141
struct PpcgLapack
4242
{
43-
using Real = typename ct::kernels::lapack_hegvd<T, base_device::DEVICE_CPU>::Real;
43+
using Real = typename ct::kernels::lapack_hegvx<T, base_device::DEVICE_CPU>::Real;
4444

4545
static void heevd(int n, T* a, Real* w)
4646
{
@@ -50,8 +50,8 @@ struct PpcgLapack
5050
static void hegvd(int n, T* a, T* b, Real* w)
5151
{
5252
std::vector<T> eigen_vec(n * n, T(0));
53-
ct::kernels::lapack_hegvd<T, base_device::DEVICE_CPU>()(
54-
n, n, a, b, w, eigen_vec.data());
53+
ct::kernels::lapack_hegvx<T, base_device::DEVICE_CPU>()(
54+
n, n, a, b, n, w, eigen_vec.data());
5555
std::copy(eigen_vec.begin(), eigen_vec.end(), a);
5656
}
5757

0 commit comments

Comments
 (0)