Changeset 624 for trunk/user/sort
- Timestamp:
- Mar 12, 2019, 1:37:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/sort/sort.c
r623 r624 305 305 } 306 306 307 printf("\n \n[sort] main starts / %d threads / %d items / pid %x / cycle %d\n",307 printf("\n[sort] main starts / %d threads / %d items / pid %x / cycle %d\n", 308 308 total_threads, ARRAY_LENGTH, getpid(), (unsigned int)start_cycle ); 309 309 … … 467 467 468 468 // register results to file 469 fprintf( stream , "\n----- %s -----\n" 470 " - sequencial : %d cycles\n" 471 " - parallel : %d cycles\n", 472 name, sequencial, parallel ); 469 int ret = fprintf( stream , "\n----- %s -----\n" 470 " - sequencial : %d cycles\n" 471 " - parallel : %d cycles\n", name, sequencial, parallel ); 472 if( ret < 0 ) 473 { 474 printf("\n[sort error] cannot write to instrumentation file <%s>\n", name ); 475 exit(0); 476 } 473 477 474 478 // close instrumentation file
Note: See TracChangeset
for help on using the changeset viewer.