Skip to content

Commit 453d9a5

Browse files
committed
fix build warnings with openMPI
1 parent 872f282 commit 453d9a5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src_c/IMB_output.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ Input variables:
343343

344344
case SAMPLE_FAILED_INT_OVERFLOW:
345345
#ifdef MPI1
346-
sprintf(aux_string + offset, " int-overflow; The production rank*size=%u caused int overflow for given sample; use flag \"-data_type double\"", size*(c_info->w_num_procs));
346+
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample; use flag \"-data_type double\"");
347347
#else
348-
sprintf(aux_string + offset, " int-overflow; The production rank*size=%u caused int overflow for given sample", size*(c_info->w_num_procs));
348+
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample");
349349
#endif
350350
break;
351351
case SAMPLE_FAILED_TIME_OUT:

src_cpp/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ endif
8181
ifeq "$(CC)" "gcc"
8282
override CFLAGS += -fopenmp
8383
endif
84+
ifeq "$(CXX)" "mpicxx"
85+
override CXXFLAGS += -fopenmp
86+
endif
87+
ifeq "$(CC)" "mpicc"
88+
override CFLAGS += -fopenmp
89+
endif
8490
endif
8591

8692
# ICC ICPC

0 commit comments

Comments
 (0)