Changeset 629 for trunk/user/sort/sort.c
- Timestamp:
- May 17, 2019, 9:27:04 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/sort/sort.c
r628 r629 29 29 #include <hal_macros.h> 30 30 31 #define ARRAY_LENGTH 1024// number of items31 #define ARRAY_LENGTH 4096 // number of items 32 32 #define MAX_THREADS 1024 // 16 * 16 * 4 33 33 … … 423 423 424 424 #if CHECK_RESULT 425 426 425 int success = 1; 427 426 int * res_array = ( (total_threads == 2) || … … 444 443 if ( success ) printf("\n[sort] success\n"); 445 444 else printf("\n[sort] failure\n"); 446 447 445 #endif 448 446 449 447 #if INSTRUMENTATION 450 451 448 char name[64]; 452 449 char path[128]; 453 450 unsigned long long instru_cycle; 454 451 455 // build a file name from n_items / n_clusters / n_cores456 if( USE_DQT_BARRIER ) snprintf( name , 64 , "sort_dqt_%d_%d_%d",457 458 else snprintf( name , 64 , "sort_smp_%d_%d_%d",459 452 // build file name 453 if( USE_DQT_BARRIER ) 454 snprintf( name , 64 , "sort_dqt_%d_%d_%d", ARRAY_LENGTH, x_size * y_size, ncores ); 455 else 456 snprintf( name , 64 , "sort_smp_%d_%d_%d", ARRAY_LENGTH, x_size * y_size, ncores ); 460 457 461 458 // build file pathname … … 471 468 " - parallel : %d cycles\n", 472 469 name, sequencial, parallel ); 473 474 #if IDBG475 idbg();476 #endif477 470 478 471 // open file
Note: See TracChangeset
for help on using the changeset viewer.