File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015-2016 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2017 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
@@ -40,6 +41,12 @@ double MPI_Wtick(void)
40
41
{
41
42
OPAL_CR_NOOP_PROGRESS ();
42
43
44
+ /*
45
+ * See https://github.com/open-mpi/ompi/issues/3003
46
+ * For now we are forcing the use of gettimeofday() until we find a
47
+ * more portable solution.
48
+ */
49
+ #if 0
43
50
#if OPAL_TIMER_CYCLE_NATIVE
44
51
{
45
52
opal_timer_t freq = opal_timer_base_get_freq ();
@@ -52,6 +59,7 @@ double MPI_Wtick(void)
52
59
}
53
60
#elif OPAL_TIMER_USEC_NATIVE
54
61
return 0.000001 ;
62
+ #endif
55
63
#else
56
64
/* Otherwise, we already return usec precision. */
57
65
return 0.000001 ;
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2017 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
@@ -40,10 +41,17 @@ double MPI_Wtime(void)
40
41
{
41
42
double wtime ;
42
43
44
+ /*
45
+ * See https://github.com/open-mpi/ompi/issues/3003
46
+ * For now we are forcing the use of gettimeofday() until we find a
47
+ * more portable solution.
48
+ */
49
+ #if 0
43
50
#if OPAL_TIMER_CYCLE_NATIVE
44
51
wtime = ((double ) opal_timer_base_get_cycles ()) / opal_timer_base_get_freq ();
45
52
#elif OPAL_TIMER_USEC_NATIVE
46
53
wtime = ((double ) opal_timer_base_get_usec ()) / 1000000.0 ;
54
+ #endif
47
55
#else
48
56
/* Fall back to gettimeofday() if we have nothing else */
49
57
struct timeval tv ;
You can’t perform that action at this time.
0 commit comments