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 1212 * Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved.
1313 * Copyright (c) 2015-2016 Research Organization for Information Science
1414 * and Technology (RIST). All rights reserved.
15+ * Copyright (c) 2017 IBM Corporation. All rights reserved.
1516 * $COPYRIGHT$
1617 *
1718 * Additional copyrights may follow
3839
3940double MPI_Wtick (void )
4041{
42+ /*
43+ * See https://github.com/open-mpi/ompi/issues/3003
44+ * For now we are forcing the use of gettimeofday() until we find a
45+ * more portable solution.
46+ */
47+ #if 0
4148#if OPAL_TIMER_CYCLE_NATIVE
4249 {
4350 opal_timer_t freq = opal_timer_base_get_freq ();
@@ -50,6 +57,7 @@ double MPI_Wtick(void)
5057 }
5158#elif OPAL_TIMER_USEC_NATIVE
5259 return 0.000001 ;
60+ #endif
5361#else
5462 /* Otherwise, we already return usec precision. */
5563 return 0.000001 ;
Original file line number Diff line number Diff line change 1212 * Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
1313 * Copyright (c) 2015 Research Organization for Information Science
1414 * and Technology (RIST). All rights reserved.
15+ * Copyright (c) 2017 IBM Corporation. All rights reserved.
1516 * $COPYRIGHT$
1617 *
1718 * Additional copyrights may follow
@@ -40,10 +41,17 @@ double MPI_Wtime(void)
4041{
4142 double wtime ;
4243
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
4350#if OPAL_TIMER_CYCLE_NATIVE
4451 wtime = ((double ) opal_timer_base_get_cycles ()) / opal_timer_base_get_freq ();
4552#elif OPAL_TIMER_USEC_NATIVE
4653 wtime = ((double ) opal_timer_base_get_usec ()) / 1000000.0 ;
54+ #endif
4755#else
4856 /* Fall back to gettimeofday() if we have nothing else */
4957 struct timeval tv ;
You can’t perform that action at this time.
0 commit comments