27 #if defined(_SION_BGP) && defined(SION_MPI) 29 #include <spi/kernel_interface.h> 30 #include <common/bgp_personality.h> 31 #include <common/bgp_personality_inlines.h> 34 static double clockspeed = 1.0e-6 / 850.0;
38 return (_bgp_GetTimeBase() * clockspeed);
41 #elif defined(_SION_BGQ) && defined(SION_MPI) 43 #include <firmware/include/personality.h> 44 #include <spi/include/kernel/process.h> 45 #include <spi/include/kernel/location.h> 47 #include <hwi/include/bqc/A2_inlines.h> 49 #include <hwi/include/common/uci.h> 51 static double clockspeed = 1.0e-6 / 850.0;
56 return ( __mftb() * elg_clockspeed );
57 #elif defined __GNUC__ 58 return ( GetTimeBase() * elg_clockspeed );
60 #error "Platform BGQ: cannot determine timebase" 66 static double clockspeed = 1.0e-6 / 700.0;
70 return (rts_get_timebase() * clockspeed);
79 #if defined(_SION_BGL) && defined(SION_MPI) 81 #elif defined(_SION_BGQ) && defined(SION_MPI) 83 #elif defined(_SION_BGP) && defined(SION_MPI) 87 gettimeofday (&tp, (
struct timezone *)NULL);
88 return tp.tv_sec + tp.tv_usec/1000000.0;
107 DPRINTFP((32,
"TIMINGS", rank,
" step=%-18s timestamp=%18.8f\n", desc, bgl_wtime()));
109 DPRINTFP((32,
"TIMINGS", rank,
" step=%-18s timestamp=%18.8f AA \n", desc,
_sion_get_time()));
double _sion_get_time()
Returns the current time as a double.
int sion_print_time_stamp(int rank, char *desc)
Prints a sion time stamp.