Skip to content

Commit b029c4e

Browse files
committed
fix on gpu
1 parent 2156ecc commit b029c4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/module_hsolver/hsolver_pw.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void HSolverPW<T, Device>::solve(hamilt::Hamilt<T, Device>* pHamilt,
291291
for (int i = 0; i < this->wfc_basis->nks; ++i)
292292
{
293293
const int ik = use_k_continuity ? k_order[i] : i;
294-
ModuleBase::timer::tick("HsolverPW", "k_point: " + std::to_string(ik));
294+
// ModuleBase::timer::tick("HsolverPW", "k_point: " + std::to_string(ik));
295295
/// update H(k) for each k point
296296
pHamilt->updateHk(ik);
297297

@@ -333,7 +333,7 @@ void HSolverPW<T, Device>::solve(hamilt::Hamilt<T, Device>* pHamilt,
333333
<< " ; where current threshold is: " << this->diag_thr << " . " << std::endl;
334334
DiagoIterAssist<T, Device>::avg_iter = 0.0;
335335
}
336-
ModuleBase::timer::tick("HsolverPW", "k_point: " + std::to_string(ik));
336+
// ModuleBase::timer::tick("HsolverPW", "k_point: " + std::to_string(ik));
337337
/// calculate the contribution of Psi for charge density rho
338338
}
339339
count++;
@@ -737,7 +737,7 @@ void HSolverPW<T, Device>::build_k_neighbors() {
737737
}
738738

739739
template <typename T, typename Device>
740-
void HSolverPW<T, Device>::propagate_psi(psi::Psi<T>& psi, const int from_ik, const int to_ik) {
740+
void HSolverPW<T, Device>::propagate_psi(psi::Psi<T, Device>& psi, const int from_ik, const int to_ik) {
741741
const int nbands = psi.get_nbands();
742742
const int npwk = this->wfc_basis->npwk[to_ik];
743743

source/module_hsolver/hsolver_pw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class HSolverPW
113113
std::vector<ModuleBase::Vector3<double>> kvecs_c;
114114

115115
void build_k_neighbors();
116-
void propagate_psi(psi::Psi<T>& psi, const int from_ik, const int to_ik);
116+
void propagate_psi(psi::Psi<T, Device>& psi, const int from_ik, const int to_ik);
117117
};
118118

119119
} // namespace hsolver

0 commit comments

Comments
 (0)