Changeset 162 for trunk


Ignore:
Timestamp:
May 10, 2011, 8:33:49 AM (14 years ago)
Author:
alain
Message:

fixing a bug in display...

Location:
trunk/softs/soft_filter_giet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/soft_filter_giet/ldscript

    r158 r162  
    1111
    1212NB_CLUSTERS             = 4;            /* number of clusters */
    13 NB_PROCS                = 1;            /* number of processors per cluster */
     13NB_PROCS                = 4;            /* number of processors per cluster */
    1414NB_TASKS                = 1;            /* number of tasks per processor */
    1515NB_TIMERS               = 1;            /* max number of timers per processor */
  • trunk/softs/soft_filter_giet/main.c

    r159 r162  
    375375    PRINTF("\n*** Starting display at cycle %d (%d)\n", date, delta);
    376376
    377     for ( l = 0 ; l < lines_per_task ; l++)
    378     {
    379         for ( p = 0 ; p < NP ; p++)
     377    first = lid*lines_per_task;
     378    last  = first + lines_per_task;
     379
     380    for ( l=first ; l<last ; l++)
     381    {
     382        for ( p=0 ; p<NP ; p++)
    380383        {
    381384           TZ(cid,l,p) = (unsigned char)(((TD(cid,l,p) + TC(cid,l,p))>>8) & 0xFF);
    382385        }
    383         fb_write(NP*(cid*lines_per_cluster+lid*lines_per_task+l), &TZ(cid,l,0), NP);
     386        fb_write(NP*(cid*lines_per_cluster+l), &TZ(cid,l,0), NP);
    384387    }
    385388
Note: See TracChangeset for help on using the changeset viewer.