Changeset 5652
- Timestamp:
- 10/31/09 20:43:46 (3 weeks ago)
- Files:
-
- 1 modified
-
mpich2/trunk/src/mpi/timer/mpidtime.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/src/mpi/timer/mpidtime.c
r3851 r5652 219 219 } 220 220 221 222 223 224 221 #elif MPICH_TIMER_KIND == USE_LINUXALPHA_CYCLE 225 /* Code from LinuxJournal #42 (Oct-97), p50; 226 thanks to Dave Covey dnc@gi.alaska.edu 227 Untested 228 */ 222 229 223 #error "LinuxAlpha cycle counter not supported" 230 /*231 unsigned long cc;232 asm volatile( "rpcc %0" : "=r"(cc) : : "memory" );233 */234 /* Convert to time. Scale cc by 1024 incase it would overflow a double;235 consider using long double as well */236 void MPID_Wtime_diff( MPID_Time_t *t1, MPID_Time_t *t2, double *diff )237 *diff = 1024.0 * ((double)(cc/1024) / (double)CLOCK_FREQ_HZ);238 void MPID_Wtime_todouble( MPID_Time_t *t, double *val )239 {240 }241 void MPID_Wtime_acc( MPID_Time_t *t1, MPID_Time_t *t2, MPID_Time_t *t3 )242 {243 }244 double MPID_Wtick( void )245 {246 return 1.0;247 }248 249 224 250 225 #elif (MPICH_TIMER_KIND == USE_WIN86_CYCLE) || (MPICH_TIMER_KIND == USE_WIN64_CYCLE)
