[cig-commits] commit:

Mercurial hg at geodynamics.org
Mon Nov 24 11:58:23 PST 2008


changeset:   32:187c4ae83d8c
user:        DavidMay
date:        Mon Feb 11 23:41:09 2008 +0000
files:       Swarm/src/ParticleCommHandler.c
description:
Cleaned up the information reported to stdout.

* Modified the journaling statements in the files below.

* Most of the places where I made the modifications were either
print redundant information on every processor, or simply logging
time information. In the latter case, I just report the min and
max times.

* I don't report which cpu which produced the min/max time, but
if ever the difference between the min and max is large you
know that the function in question has an obvious sync. problem
and further examination is obviously required.


diff -r c3b782023bbd -r 187c4ae83d8c Swarm/src/ParticleCommHandler.c
--- a/Swarm/src/ParticleCommHandler.c	Thu Feb 07 22:48:58 2008 +0000
+++ b/Swarm/src/ParticleCommHandler.c	Mon Feb 11 23:41:09 2008 +0000
@@ -683,13 +683,13 @@ void _ParticleCommHandler_PrintCommunica
 		MPI_Barrier( self->swarm->comm );
 
 		if ( self->swarm->myRank == proc_I ) {			
-			Journal_Printf( stream, "...proc %d finished particle communication:\n", self->swarm->myRank );
+			Journal_PrintfL( stream, 2, "...proc %d finished particle communication:\n", self->swarm->myRank );
 			Stream_Indent( stream );
-			Journal_Printf( stream, "- Particle comm totals via shadow cells (%d nbr procs):"
+			Journal_PrintfL( stream, 2, "- Particle comm totals via shadow cells (%d nbr procs):"
 				" sent %d, recvd %d\n",
 				nbrCount, self->shadowParticlesLeavingMeTotalCount,
 				totalParticlesRecvdViaShadowFromNbrs );
-			Journal_Printf( stream, "- time taken = %.2f (secs)\n", myProcTime );
+			Journal_PrintfL( stream, 2, "- time taken = %.2f (secs)\n", myProcTime );
 			Stream_UnIndent( stream );
 		}
 	}
@@ -704,7 +704,7 @@ void _ParticleCommHandler_PrintCommunica
 			}
 		}
 		// TODO: print some stats on max particles sent/recvd and total sent/recvd
-		Journal_Printf( stream, "...Max Communication time by any proc was %.2f (secs)\n", maxProcTime );
+		Journal_PrintfL( stream, 2, "...Max Communication time by any proc was %.2f (secs)\n", maxProcTime );
 	}
 	Memory_Free( procTimes );
 }



More information about the CIG-COMMITS mailing list