Changeset 635 for trunk/user/fft
- Timestamp:
- Jun 26, 2019, 11:42:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/fft/fft.c
r630 r635 87 87 // parameters 88 88 89 #define DEFAULT_M 12 // 4096 data points89 #define DEFAULT_M 8 // 256 data points 90 90 #define USE_DQT_BARRIER 0 // use DDT barrier if non zero 91 91 #define MODE COSIN // DATA array initialisation mode … … 291 291 main_tid = (((main_x * y_size) + main_y) * ncores) + main_lid; 292 292 293 printf("\n[fft] starts on core[%x,%d] / %d complex points / %d thread(s) / PID %x\n",294 main_cxy, main_lid, N, nthreads, getpid() );293 printf("\n[fft] starts / core[%x,%d] / %d points / %d thread(s) / PID %x / cycle %d\n", 294 main_cxy, main_lid, N, nthreads, getpid(), (unsigned int)start_init_cycle ); 295 295 296 296 // allocate memory for the distributed data[i], trans[i], umain[i], twid[i] buffers … … 312 312 } 313 313 314 printf("\n[fft] main completes remote_malloc\n"); 314 #if DEBUG_MAIN 315 printf("\n[fft] main completes remote_malloc\n"); 316 #endif 315 317 316 318 // arrays initialisation … … 319 321 InitT( twid ); 320 322 321 printf("\n[fft] main completes arrays init\n"); 323 #if DEBUG_MAIN 324 printf("\n[fft] main completes arrays init\n"); 325 #endif 322 326 323 327 #if CHECK … … 357 361 } 358 362 359 printf("\n[fft] main completes barrier init\n"); 363 #if DEBUG_MAIN 364 printf("\n[fft] main completes barrier init\n"); 365 #endif 360 366 361 367 // launch other threads to execute the slave() function … … 393 399 exit( 0 ); 394 400 } 401 395 402 #if (DEBUG_MAIN & 1) 396 403 unsigned long long debug_cycle; … … 404 411 } 405 412 406 printf("\n[fft] main completes threads creation\n"); 413 #if DEBUG_MAIN 414 printf("\n[fft] main completes threads creation\n"); 415 #endif 407 416 408 417 get_cycle( &end_init_cycle );
Note: See TracChangeset
for help on using the changeset viewer.