Skip to content

Commit 1ddcea7

Browse files
committed
Rename dnevx to heevx
1 parent b062b07 commit 1ddcea7

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

source/source_hsolver/diago_david.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,15 +622,15 @@ void DiagoDavid<T, Device>::diag_zhegvx(const int& nbase,
622622
resmem_var_op()(eigenvalue_gpu, nbase_x);
623623
syncmem_var_h2d_op()(eigenvalue_gpu, this->eigenvalue, nbase_x);
624624

625-
dnevx_op<T, Device>()(this->ctx, nbase, nbase_x, hcc, nband, eigenvalue_gpu, vcc);
625+
heevx_op<T, Device>()(this->ctx, nbase, nbase_x, hcc, nband, eigenvalue_gpu, vcc);
626626

627627
syncmem_var_d2h_op()(this->eigenvalue, eigenvalue_gpu, nbase_x);
628628
delmem_var_op()(eigenvalue_gpu);
629629
#endif
630630
}
631631
else
632632
{
633-
dnevx_op<T, Device>()(this->ctx, nbase, nbase_x, hcc, nband, this->eigenvalue, vcc);
633+
heevx_op<T, Device>()(this->ctx, nbase, nbase_x, hcc, nband, this->eigenvalue, vcc);
634634
}
635635
}
636636

source/source_hsolver/kernels/cuda/dngvd_op.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ struct dngvd_op<T, base_device::DEVICE_GPU>
225225
};
226226

227227
template <typename T>
228-
struct dnevx_op<T, base_device::DEVICE_GPU>
228+
struct heevx_op<T, base_device::DEVICE_GPU>
229229
{
230230
using Real = typename GetTypeReal<T>::type;
231231
void operator()(const base_device::DEVICE_GPU* d,
@@ -261,16 +261,16 @@ struct dngvx_op<T, base_device::DEVICE_GPU>
261261
};
262262

263263
template struct dngvd_op<std::complex<float>, base_device::DEVICE_GPU>;
264-
template struct dnevx_op<std::complex<float>, base_device::DEVICE_GPU>;
264+
template struct heevx_op<std::complex<float>, base_device::DEVICE_GPU>;
265265
template struct dngvx_op<std::complex<float>, base_device::DEVICE_GPU>;
266266

267267
template struct dngvd_op<std::complex<double>, base_device::DEVICE_GPU>;
268-
template struct dnevx_op<std::complex<double>, base_device::DEVICE_GPU>;
268+
template struct heevx_op<std::complex<double>, base_device::DEVICE_GPU>;
269269
template struct dngvx_op<std::complex<double>, base_device::DEVICE_GPU>;
270270

271271
#ifdef __LCAO
272272
template struct dngvd_op<double, base_device::DEVICE_GPU>;
273-
template struct dnevx_op<double, base_device::DEVICE_GPU>;
273+
template struct heevx_op<double, base_device::DEVICE_GPU>;
274274
template struct dngvx_op<double, base_device::DEVICE_GPU>;
275275
#endif
276276

source/source_hsolver/kernels/dngvd_op.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct dngv_op<T, base_device::DEVICE_CPU>
140140
};
141141

142142
template <typename T>
143-
struct dnevx_op<T, base_device::DEVICE_CPU>
143+
struct heevx_op<T, base_device::DEVICE_CPU>
144144
{
145145
using Real = typename GetTypeReal<T>::type;
146146
void operator()(const base_device::DEVICE_CPU* /*ctx*/,
@@ -324,8 +324,8 @@ struct dngvx_op<T, base_device::DEVICE_CPU>
324324
template struct dngvd_op<std::complex<float>, base_device::DEVICE_CPU>;
325325
template struct dngvd_op<std::complex<double>, base_device::DEVICE_CPU>;
326326

327-
template struct dnevx_op<std::complex<float>, base_device::DEVICE_CPU>;
328-
template struct dnevx_op<std::complex<double>, base_device::DEVICE_CPU>;
327+
template struct heevx_op<std::complex<float>, base_device::DEVICE_CPU>;
328+
template struct heevx_op<std::complex<double>, base_device::DEVICE_CPU>;
329329

330330
template struct dngvx_op<std::complex<float>, base_device::DEVICE_CPU>;
331331
template struct dngvx_op<std::complex<double>, base_device::DEVICE_CPU>;
@@ -334,7 +334,7 @@ template struct dngv_op<std::complex<float>, base_device::DEVICE_CPU>;
334334
template struct dngv_op<std::complex<double>, base_device::DEVICE_CPU>;
335335
#ifdef __LCAO
336336
template struct dngvd_op<double, base_device::DEVICE_CPU>;
337-
template struct dnevx_op<double, base_device::DEVICE_CPU>;
337+
template struct heevx_op<double, base_device::DEVICE_CPU>;
338338
template struct dngvx_op<double, base_device::DEVICE_CPU>;
339339
template struct dngv_op<double, base_device::DEVICE_CPU>;
340340
#endif

source/source_hsolver/kernels/dngvd_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct dngvx_op
8282
};
8383

8484
template <typename T, typename Device>
85-
struct dnevx_op
85+
struct heevx_op
8686
{
8787
using Real = typename GetTypeReal<T>::type;
8888
/// @brief DNEVX computes the first m eigenvalues and their corresponding eigenvectors of

source/source_hsolver/kernels/rocm/dngvd_op.hip.cu

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ void dngvd_op<std::complex<double>, base_device::DEVICE_GPU>::operator()(const b
258258

259259
#ifdef __LCAO
260260
template <>
261-
void dnevx_op<double, base_device::DEVICE_GPU>::operator()(const base_device::DEVICE_GPU* ctx,
261+
void heevx_op<double, base_device::DEVICE_GPU>::operator()(const base_device::DEVICE_GPU* ctx,
262262
const int nstart,
263263
const int ldh,
264264
const double* _hcc,
@@ -271,14 +271,14 @@ void dnevx_op<double, base_device::DEVICE_GPU>::operator()(const base_device::DE
271271
std::vector<double> eigenvalue(ldh, 0);
272272
hipErrcheck(hipMemcpy(hcc.data(), _hcc, sizeof(double) * hcc.size(), hipMemcpyDeviceToHost));
273273
base_device::DEVICE_CPU* cpu_ctx = {};
274-
dnevx_op<double, base_device::DEVICE_CPU>()(cpu_ctx, nstart, ldh, hcc.data(), m, eigenvalue.data(), vcc.data());
274+
heevx_op<double, base_device::DEVICE_CPU>()(cpu_ctx, nstart, ldh, hcc.data(), m, eigenvalue.data(), vcc.data());
275275
hipErrcheck(hipMemcpy(_vcc, vcc.data(), sizeof(double) * vcc.size(), hipMemcpyHostToDevice));
276276
hipErrcheck(hipMemcpy(_eigenvalue, eigenvalue.data(), sizeof(double) * eigenvalue.size(), hipMemcpyHostToDevice));
277277
}
278278
#endif // __LCAO
279279

280280
template <>
281-
void dnevx_op<std::complex<float>, base_device::DEVICE_GPU>::operator()(const base_device::DEVICE_GPU* ctx,
281+
void heevx_op<std::complex<float>, base_device::DEVICE_GPU>::operator()(const base_device::DEVICE_GPU* ctx,
282282
const int nstart,
283283
const int ldh,
284284
const std::complex<float>* _hcc,
@@ -291,7 +291,7 @@ void dnevx_op<std::complex<float>, base_device::DEVICE_GPU>::operator()(const ba
291291
std::vector<float> eigenvalue(ldh, 0);
292292
hipErrcheck(hipMemcpy(hcc.data(), _hcc, sizeof(std::complex<float>) * hcc.size(), hipMemcpyDeviceToHost));
293293
base_device::DEVICE_CPU* cpu_ctx = {};
294-
dnevx_op<std::complex<float>, base_device::DEVICE_CPU>()(cpu_ctx,
294+
heevx_op<std::complex<float>, base_device::DEVICE_CPU>()(cpu_ctx,
295295
nstart,
296296
ldh,
297297
hcc.data(),
@@ -303,7 +303,7 @@ void dnevx_op<std::complex<float>, base_device::DEVICE_GPU>::operator()(const ba
303303
}
304304

305305
template <>
306-
void dnevx_op<std::complex<double>, base_device::DEVICE_GPU>::operator()(const base_device::DEVICE_GPU* ctx,
306+
void heevx_op<std::complex<double>, base_device::DEVICE_GPU>::operator()(const base_device::DEVICE_GPU* ctx,
307307
const int nstart,
308308
const int ldh,
309309
const std::complex<double>* _hcc,
@@ -316,7 +316,7 @@ void dnevx_op<std::complex<double>, base_device::DEVICE_GPU>::operator()(const b
316316
std::vector<double> eigenvalue(ldh, 0);
317317
hipErrcheck(hipMemcpy(hcc.data(), _hcc, sizeof(std::complex<double>) * hcc.size(), hipMemcpyDeviceToHost));
318318
base_device::DEVICE_CPU* cpu_ctx = {};
319-
dnevx_op<std::complex<double>, base_device::DEVICE_CPU>()(cpu_ctx,
319+
heevx_op<std::complex<double>, base_device::DEVICE_CPU>()(cpu_ctx,
320320
nstart,
321321
ldh,
322322
hcc.data(),

0 commit comments

Comments
 (0)