more rounds in mail_pingpong

This commit is contained in:
Simon Pickartz 2011-07-01 07:08:19 -07:00
parent 681bb5428f
commit c2341562c7

View file

@ -210,7 +210,7 @@ int icc_halt(void)
return 0;
}
#define ROUNDS 1000
#define ROUNDS 100000
int icc_mail_ping( void )
{
@ -226,7 +226,7 @@ int icc_mail_ping( void )
flags = irq_nested_disable();
for( i=0; i<ROUNDS+1; ++i ) {
if( my_rank == 0 ) {
if( my_ue == 0 ) {
/* send ping request */
iRCCE_mail_send(0, PING_REQ, 0, NULL, rem_rank);
@ -254,14 +254,15 @@ int icc_mail_ping( void )
/* start timer in first round */
if( i == 0 ) timer = rdtsc();
}
/* stop timer */
timer = rdtsc() - timer;
if( my_rank == 0 ) {
printf( "mail_pingpong needs in average %.3f µsec (%d ticks)!\n",
kprintf( "timer = %d\n", timer );
if( my_ue == 0 ) {
kprintf( "mail_pingpong needs in average %f µsec (%d ticks)!\n",
timer/(2.0*ROUNDS*533), timer/(2*ROUNDS) );
}