Changeset 582 for trunk/user
- Timestamp:
- Oct 11, 2018, 5:04:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/fft/fft.c
r581 r582 89 89 #define MODE COSIN 90 90 #define CHECK 0 91 #define DEBUG_MAIN 0// trace main() function (detailed if odd)92 #define DEBUG_FFT1D 0// trace FFT1D() function (detailed if odd)91 #define DEBUG_MAIN 1 // trace main() function (detailed if odd) 92 #define DEBUG_FFT1D 1 // trace FFT1D() function (detailed if odd) 93 93 #define DEBUG_ROW 0 // trace FFTRow() function (detailed if odd) 94 94 #define PRINT_ARRAY 0 … … 300 300 } 301 301 302 printf("\n[FFT] main complete remote_malloc\n");302 printf("\n[FFT] main completes remote_malloc\n"); 303 303 304 304 // arrays initialisation … … 307 307 InitT( twid ); 308 308 309 printf("\n[FFT] main complete init arrays\n");309 printf("\n[FFT] main complete arrays init\n"); 310 310 311 311 #if CHECK … … 326 326 #endif 327 327 328 // initialise distributedbarrier328 // initialise barrier 329 329 barrierattr.x_size = x_size; 330 330 barrierattr.y_size = y_size; … … 346 346 for ( lid = 0 ; lid < ncores ; lid++ ) 347 347 { 348 // compute thread continuous index348 // compute thread user index (continuous index) 349 349 tid = (((x * y_size) + y) * ncores) + lid; 350 350 … … 365 365 &args[tid]) ) // pointer on function arguments 366 366 { 367 printf("\n[FFT ERROR] creating thread %x\n", t rdid[tid]);367 printf("\n[FFT ERROR] creating thread %x\n", tid ); 368 368 exit( 0 ); 369 369 } 370 370 #if DEBUG_MAIN 371 printf("\n[FFT] main created thread %x \n", trdid[tid]);371 printf("\n[FFT] main created thread %x on core %d in cluster(%d,%d) \n", tid, lid, x, y ); 372 372 #endif 373 373 } … … 497 497 MyNum = *tid; 498 498 499 // get 499 // BARRIER before parallel exec 500 pthread_barrier_wait( &barrier ); 501 500 502 // initialise instrumentation 501 503 get_cycle( ¶llel_start ); … … 607 609 } // end SimpleDft() 608 610 609 ///////////////// 611 /////////////////////// 610 612 double CheckSum( void ) 611 613 {
Note: See TracChangeset
for help on using the changeset viewer.