Skip to content

Commit 316efa0

Browse files
committed
fix bug of #include
1 parent c0daef7 commit 316efa0

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎source/source_base/kernels/cuda/math_kernel_op_vec.cu‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <base/macros/macros.h>
44
#include <thrust/complex.h>
5+
#include "source_base/parallel_reduce.h"
56

67
template <>
78
struct GetTypeReal<thrust::complex<float>> {

‎source/source_base/kernels/rocm/math_kernel_op_vec.hip.cu‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <base/macros/macros.h>
44
#include <thrust/complex.h>
5+
#include "source_base/parallel_reduce.h"
56
template <>
67
struct GetTypeReal<thrust::complex<float>> {
78
using type = float; /**< The return type specialization for std::complex<double>. */

‎source/source_lcao/FORCE_STRESS.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include "source_lcao/module_operator_lcao/overlap.h"
2525
#include "source_lcao/pulay_fs.h"
2626

27+
#include "source_base/parallel_reduce.h"
28+
2729
#ifdef __MPI
2830
#include "source_base/parallel_reduce.h"
2931
#endif

‎source/source_lcao/module_deltaspin/cal_mw.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "source_estate/elecstate_lcao.h"
1212
#include "source_lcao/hamilt_lcao.h"
1313
#include "source_lcao/module_operator_lcao/dspin_lcao.h"
14+
#endif
15+
1416
#include "source_base/parallel_reduce.h"
1517

1618
template <>
@@ -51,8 +53,6 @@ void spinconstrain::SpinConstrain<std::complex<double>>::cal_mi_lcao(const int&
5153
ModuleBase::timer::end("spinconstrain::SpinConstrain", "cal_mi_lcao");
5254
}
5355

54-
#endif
55-
5656
template <>
5757
void spinconstrain::SpinConstrain<std::complex<double>>::cal_mi_pw()
5858
{

0 commit comments

Comments
 (0)