more rounds in mail_pingpong
This commit is contained in:
parent
681bb5428f
commit
c2341562c7
1 changed files with 6 additions and 5 deletions
|
@ -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) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue