Skip to content

Commit 5e1fbd8

Browse files
Piotr Luszczekluszczek
authored andcommitted
Add underscore to make the macro name more readable
1 parent ff8d772 commit 5e1fbd8

26 files changed

+65
-61
lines changed

INSTALL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ options and their meaning are:
160160

161161
-DHPCG_DETAILED_DEBUG
162162

163-
* Compile without MPI enabled::
163+
* Compile with MPI disabled::
164164

165-
-DHPCG_NOMPI
165+
-DHPCG_NO_MPI
166166

167167
* Compile without OpenMP enabled::
168168

setup/Make.GCC_OMP

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output
@@ -106,7 +106,7 @@ HPCG_LIBS =
106106
# *) Build with OpenMP enabled.
107107
# *) Not generate debugging output.
108108
#
109-
HPCG_OPTS = -DHPCG_NOMPI
109+
HPCG_OPTS = -DHPCG_NO_MPI
110110
#
111111
# ----------------------------------------------------------------------
112112
#

setup/Make.ICPC_OMP

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output
@@ -106,7 +106,7 @@ HPCG_LIBS =
106106
# *) Build with OpenMP enabled.
107107
# *) Not generate debugging output.
108108
#
109-
HPCG_OPTS = -DHPCG_NOMPI
109+
HPCG_OPTS = -DHPCG_NO_MPI
110110
#
111111
# ----------------------------------------------------------------------
112112
#

setup/Make.Linux_MPI

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output

setup/Make.Linux_Serial

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output
@@ -106,7 +106,7 @@ HPCG_LIBS =
106106
# *) Build with OpenMP enabled.
107107
# *) Not generate debugging output.
108108
#
109-
HPCG_OPTS = -DHPCG_NOMPI -DHPCG_NOOPENMP
109+
HPCG_OPTS = -DHPCG_NO_MPI -DHPCG_NOOPENMP
110110
#
111111
# ----------------------------------------------------------------------
112112
#

setup/Make.MPIICPC_OMP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output

setup/Make.MPI_GCC_OMP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output

setup/Make.MPI_ICPC

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to disable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output

setup/Make.MPI_ICPC_OMP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ HPCG_LIBS =
9696
#
9797
# - Compile time options -----------------------------------------------
9898
#
99-
# -DHPCG_NOMPI Define to disable MPI
99+
# -DHPCG_NO_MPI Define to enable MPI
100100
# -DHPCG_NOOPENMP Define to disable OPENMP
101101
# -DHPCG_DEBUG Define to enable debugging output
102102
# -DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output

src/CG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int CG(const SparseMatrix & A, CGData & data, const Vector & b, Vector & x,
6666

6767

6868
double t0 = 0.0, t1 = 0.0, t2 = 0.0, t3 = 0.0, t4 = 0.0, t5 = 0.0;
69-
//#ifndef HPCG_NOMPI
69+
//#ifndef HPCG_NO_MPI
7070
// double t6 = 0.0;
7171
//#endif
7272
local_int_t nrow = A.localNumberOfRows;
@@ -135,7 +135,7 @@ int CG(const SparseMatrix & A, CGData & data, const Vector & b, Vector & x,
135135
times[3] += t3; // SPMV time
136136
times[4] += t4; // AllReduce time
137137
times[5] += t5; // preconditioner apply time
138-
//#ifndef HPCG_NOMPI
138+
//#ifndef HPCG_NO_MPI
139139
// times[6] += t6; // exchange halo time
140140
//#endif
141141
times[0] += mytimer() - t_begin; // Total time. All done...

0 commit comments

Comments
 (0)