Skip to content

Commit 861f5b5

Browse files
committed
merge fix
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 019927a commit 861f5b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/mpi/c/wtime.c.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,16 @@
4040

4141
#include "opal/util/clock_gettime.h"
4242

43+
#if OMPI_BUILD_MPI_PROFILING
4344
/**
4445
* Use this as a base time set early during MPI initialization to improve the range
4546
* and accuracy of the user visible timer.
4647
* More info: https://github.com/mpi-forum/mpi-issues/issues/77#issuecomment-369663119
4748
*/
49+
struct timespec ompi_wtime_time_origin = {.tv_sec = 0};
50+
#else
4851
extern struct timespec ompi_wtime_time_origin;
52+
#endif
4953

5054
PROTOTYPE DOUBLE wtime()
5155
{

0 commit comments

Comments
 (0)