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/pgcd/main.c

    r295 r432  
    88    unsigned int opy;
    99
    10     unsigned int    procid     = giet_procid();
    11     unsigned int    cluster_xy = procid/NB_PROCS_MAX;
    12     unsigned int    lpid       = procid%NB_PROCS_MAX;
    13     unsigned int    x          = cluster_xy >> Y_WIDTH;
    14     unsigned int    y          = cluster_xy & ((1<<Y_WIDTH)-1);
     10    // get processor identifiers
     11    unsigned int    x;
     12    unsigned int    y;
     13    unsigned int    lpid;
     14    giet_proc_xyp( &x, &y, &lpid );
    1515
    1616    giet_tty_printf( "*** Starting task pgcd on processor[%d,%d,%d] at cycle %d\n\n",
Note: See TracChangeset for help on using the changeset viewer.