[mpich2-commits] r5652 - mpich2/trunk/src/mpi/timer

balaji at mcs.anl.gov balaji at mcs.anl.gov
Sat Oct 31 20:43:46 CDT 2009


Author: balaji
Date: 2009-10-31 20:43:46 -0500 (Sat, 31 Oct 2009)
New Revision: 5652

Modified:
   mpich2/trunk/src/mpi/timer/mpidtime.c
Log:
Get rid of unused code.


Modified: mpich2/trunk/src/mpi/timer/mpidtime.c
===================================================================
--- mpich2/trunk/src/mpi/timer/mpidtime.c	2009-10-31 21:07:02 UTC (rev 5651)
+++ mpich2/trunk/src/mpi/timer/mpidtime.c	2009-11-01 01:43:46 UTC (rev 5652)
@@ -218,35 +218,10 @@
     *t3 += (*t2 - *t1);
 }
 
-
-
-
 #elif MPICH_TIMER_KIND == USE_LINUXALPHA_CYCLE
-/* Code from LinuxJournal #42 (Oct-97), p50; 
-   thanks to Dave Covey dnc at gi.alaska.edu
-   Untested
- */
+
 #error "LinuxAlpha cycle counter not supported"
-/*
-    unsigned long cc;
-    asm volatile( "rpcc %0" : "=r"(cc) : : "memory" );
- */
-    /* Convert to time.  Scale cc by 1024 incase it would overflow a double;
-       consider using long double as well */
-void MPID_Wtime_diff( MPID_Time_t *t1, MPID_Time_t *t2, double *diff )
-    *diff = 1024.0 * ((double)(cc/1024) / (double)CLOCK_FREQ_HZ);
-void MPID_Wtime_todouble( MPID_Time_t *t, double *val )
-{
-}
-void MPID_Wtime_acc( MPID_Time_t *t1, MPID_Time_t *t2, MPID_Time_t *t3 )
-{
-}
-double MPID_Wtick( void ) 
-{
-    return 1.0;
-}
 
-
 #elif (MPICH_TIMER_KIND == USE_WIN86_CYCLE) || (MPICH_TIMER_KIND == USE_WIN64_CYCLE)
 double MPID_Seconds_per_tick = 0.0;
 double MPID_Wtick(void)



More information about the mpich2-commits mailing list