55
66namespace hsolver {
77
8- // NOTE: mimicked from ../cuda/dngvd_op.cu for three dngvd_op
8+ // NOTE: mimicked from ../cuda/dngvd_op.cu for three hegvd_op
99
1010static hipsolverHandle_t hipsolver_H = nullptr ;
1111// Test on DCU platform. When nstart is greater than 234, code on DCU performs better.
@@ -28,15 +28,15 @@ void destroyGpuSolverHandle() {
2828
2929#ifdef __LCAO
3030template <>
31- void dngvd_op <double , base_device::DEVICE_GPU>::operator ()(const base_device::DEVICE_GPU* ctx,
31+ void hegvd_op <double , base_device::DEVICE_GPU>::operator ()(const base_device::DEVICE_GPU* ctx,
3232 const int nstart,
3333 const int ldh,
3434 const double * _hcc,
3535 const double * _scc,
3636 double * _eigenvalue,
3737 double * _vcc)
3838{
39- // copied from ../cuda/dngvd_op.cu, "dngvd_op "
39+ // copied from ../cuda/dngvd_op.cu, "hegvd_op "
4040 assert (nstart == ldh);
4141
4242 if (nstart > N_DCU){
@@ -86,7 +86,7 @@ void dngvd_op<double, base_device::DEVICE_GPU>::operator()(const base_device::DE
8686 hipErrcheck (hipMemcpy (hcc.data (), _hcc, sizeof (double ) * hcc.size (), hipMemcpyDeviceToHost));
8787 hipErrcheck (hipMemcpy (scc.data (), _scc, sizeof (double ) * scc.size (), hipMemcpyDeviceToHost));
8888 base_device::DEVICE_CPU* cpu_ctx = {};
89- dngvd_op <double , base_device::DEVICE_CPU>()(cpu_ctx,
89+ hegvd_op <double , base_device::DEVICE_CPU>()(cpu_ctx,
9090 nstart,
9191 ldh,
9292 hcc.data (),
@@ -102,15 +102,15 @@ void dngvd_op<double, base_device::DEVICE_GPU>::operator()(const base_device::DE
102102#endif // __LCAO
103103
104104template <>
105- void dngvd_op <std::complex <float >, base_device::DEVICE_GPU>::operator ()(const base_device::DEVICE_GPU* ctx,
105+ void hegvd_op <std::complex <float >, base_device::DEVICE_GPU>::operator ()(const base_device::DEVICE_GPU* ctx,
106106 const int nstart,
107107 const int ldh,
108108 const std::complex <float >* _hcc,
109109 const std::complex <float >* _scc,
110110 float * _eigenvalue,
111111 std::complex <float >* _vcc)
112112{
113- // copied from ../cuda/dngvd_op.cu, "dngvd_op "
113+ // copied from ../cuda/dngvd_op.cu, "hegvd_op "
114114 assert (nstart == ldh);
115115
116116 if (nstart > N_DCU){
@@ -159,7 +159,7 @@ void dngvd_op<std::complex<float>, base_device::DEVICE_GPU>::operator()(const ba
159159 hipErrcheck (hipMemcpy (hcc.data (), _hcc, sizeof (std::complex <float >) * hcc.size (), hipMemcpyDeviceToHost));
160160 hipErrcheck (hipMemcpy (scc.data (), _scc, sizeof (std::complex <float >) * scc.size (), hipMemcpyDeviceToHost));
161161 base_device::DEVICE_CPU* cpu_ctx = {};
162- dngvd_op <std::complex <float >, base_device::DEVICE_CPU>()(cpu_ctx,
162+ hegvd_op <std::complex <float >, base_device::DEVICE_CPU>()(cpu_ctx,
163163 nstart,
164164 ldh,
165165 hcc.data (),
@@ -174,7 +174,7 @@ void dngvd_op<std::complex<float>, base_device::DEVICE_GPU>::operator()(const ba
174174}
175175
176176template <>
177- void dngvd_op <std::complex <double >, base_device::DEVICE_GPU>::operator ()(const base_device::DEVICE_GPU* ctx,
177+ void hegvd_op <std::complex <double >, base_device::DEVICE_GPU>::operator ()(const base_device::DEVICE_GPU* ctx,
178178 const int nstart,
179179 const int ldh,
180180 const std::complex <double >* _hcc,
@@ -183,7 +183,7 @@ void dngvd_op<std::complex<double>, base_device::DEVICE_GPU>::operator()(const b
183183 std::complex <double >* _vcc
184184 )
185185{
186- // copied from ../cuda/dngvd_op.cu, "dngvd_op "
186+ // copied from ../cuda/dngvd_op.cu, "hegvd_op "
187187 // assert(nstart == ldh);
188188
189189 // save a copy of scc in case the diagonalization fails
@@ -237,7 +237,7 @@ void dngvd_op<std::complex<double>, base_device::DEVICE_GPU>::operator()(const b
237237 hipErrcheck (hipMemcpy (hcc.data (), _hcc, sizeof (std::complex <double >) * hcc.size (), hipMemcpyDeviceToHost));
238238 hipErrcheck (hipMemcpy (scc.data (), _scc, sizeof (std::complex <double >) * scc.size (), hipMemcpyDeviceToHost));
239239 base_device::DEVICE_CPU* cpu_ctx = {};
240- dngvd_op <std::complex <double >, base_device::DEVICE_CPU>()(cpu_ctx,
240+ hegvd_op <std::complex <double >, base_device::DEVICE_CPU>()(cpu_ctx,
241241 nstart,
242242 ldh,
243243 hcc.data (),
0 commit comments