Skip to content

Commit c9df805

Browse files
committed
update mpi.h
1 parent 5c4b9b6 commit c9df805

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ You can install Git first and reinstall abacus.")
114114
endif()
115115
endif()
116116

117+
# Serial version of ABACUS will not use ELPA
117118
if(NOT ENABLE_MPI)
118119
set(USE_ELPA OFF)
119120
set(ENABLE_DEEPKS OFF)
120121
endif()
121122

123+
# Different exe files of ABACUS
122124
if(ENABLE_LCAO AND ENABLE_MPI)
123125
set(ABACUS_BIN_NAME abacus)
124126
elseif(NOT ENABLE_LCAO AND ENABLE_MPI)
@@ -129,6 +131,7 @@ elseif(ENABLE_LCAO AND NOT ENABLE_MPI)
129131
set(ABACUS_BIN_NAME abacus_serial)
130132
endif()
131133

134+
# Use DSP hardware
132135
if (USE_DSP)
133136
set(USE_ELPA OFF)
134137
set(ENABLE_LCAO OFF)

source/module_cell/unitcell.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
#ifdef __MPI
1818
#include "mpi.h"
1919
#endif
20+
2021
#ifdef USE_PAW
2122
#include "module_cell/module_paw/paw_cell.h"
2223
#endif
24+
2325
#ifdef __LCAO
2426
#include "../module_basis/module_ao/ORB_read.h" // to use 'ORB' -- mohan 2021-01-30
2527
#endif

source/module_io/write_cube.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
#include<vector>
55
#include "module_hamilt_pw/hamilt_pwdft/parallel_grid.h"
66

7+
#ifdef __MPI
78
#include <mpi.h>
9+
#endif
10+
811
#include <cstring>
912

1013
void ModuleIO::write_vdata_palgrid(

source/module_io/write_istate_info.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#include "module_base/global_variable.h"
66
#include "module_base/timer.h"
77

8+
#ifdef __MPI
89
#include <mpi.h> // use MPI_Barrier
10+
#endif
911

1012
void ModuleIO::write_istate_info(const ModuleBase::matrix &ekb,const ModuleBase::matrix &wg, const K_Vectors& kv)
1113
{

source/module_io/write_wfc_r.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
//======================
2-
// AUTHOR : Peize Lin
3-
// DATE : 2021-11-21
4-
//======================
5-
61
#ifndef WRITE_WFC_R_H
72
#define WRITE_WFC_R_H
83

0 commit comments

Comments
 (0)