Changeset 582 for trunk/user/fft


Ignore:
Timestamp:
Oct 11, 2018, 5:04:28 PM (6 years ago)
Author:
alain
Message:

New DQDT implementation supporting missing clusters
thanks to the cluster_info[x][y] array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/fft/fft.c

    r581 r582  
    8989#define MODE                    COSIN
    9090#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)
    9393#define DEBUG_ROW               0               // trace FFTRow() function (detailed if odd)
    9494#define PRINT_ARRAY             0
     
    300300    }
    301301
    302     printf("\n[FFT] main complete remote_malloc\n");
     302    printf("\n[FFT] main completes remote_malloc\n");
    303303
    304304    // arrays initialisation
     
    307307    InitT( twid );
    308308
    309     printf("\n[FFT] main complete init arrays\n");
     309    printf("\n[FFT] main complete arrays init\n");
    310310
    311311#if CHECK
     
    326326#endif
    327327
    328     // initialise distributed barrier
     328    // initialise barrier
    329329    barrierattr.x_size   = x_size;
    330330    barrierattr.y_size   = y_size;
     
    346346            for ( lid = 0 ; lid < ncores ; lid++ )
    347347            {
    348                 // compute thread continuous index
     348                // compute thread user index (continuous index)
    349349                tid = (((x * y_size) + y) * ncores) + lid;
    350350
     
    365365                                         &args[tid]) ) // pointer on function arguments
    366366                    {
    367                         printf("\n[FFT ERROR] creating thread %x\n", trdid[tid] );
     367                        printf("\n[FFT ERROR] creating thread %x\n", tid );
    368368                        exit( 0 );
    369369                    }
    370370#if DEBUG_MAIN
    371 printf("\n[FFT] main created thread %x\n", trdid[tid] );
     371printf("\n[FFT] main created thread %x on core %d in cluster(%d,%d) \n", tid, lid, x, y );
    372372#endif
    373373                }
     
    497497    MyNum = *tid;
    498498
    499     // get
     499    // BARRIER before parallel exec
     500    pthread_barrier_wait( &barrier );
     501
    500502    // initialise instrumentation
    501503    get_cycle( &parallel_start );
     
    607609}  // end SimpleDft()
    608610
    609 /////////////////
     611///////////////////////
    610612double CheckSum( void )
    611613{
Note: See TracChangeset for help on using the changeset viewer.