Ignore:
Timestamp:
Oct 4, 2014, 4:33:31 PM (10 years ago)
Author:
alain
Message:

1) Introduce the "applications" directory.
2) Introduce the fixed format (X_WIDTH / Y_WIDTH / P_WIDTH) for processor index in all applications.

Location:
soft/giet_vm/applications
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/display/main_cma.c

    r297 r432  
    99__attribute__((constructor)) void main(void)
    1010{
     11    // get processor identifiers
     12    unsigned int    x;
     13    unsigned int    y;
     14    unsigned int    lpid;
     15    giet_proc_xyp( &x, &y, &lpid );
     16
    1117    int             fd;
    1218    unsigned int    blocks_to_skip = 0;
    13     unsigned int    procid         = giet_procid();
    14     unsigned int    cluster_xy     = procid/NB_PROCS_MAX;
    15     unsigned int    lpid           = procid%NB_PROCS_MAX;
    16     unsigned int    x              = cluster_xy >> Y_WIDTH;
    17     unsigned int    y              = cluster_xy & ((1<<Y_WIDTH)-1);
    1819
    1920    giet_tty_printf( "*** Starting task display on processor[%d,%d,%d] at cycle %d\n\n",
Note: See TracChangeset for help on using the changeset viewer.