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

    r387 r432  
    55{
    66        char                byte;
    7     unsigned int    procid     = giet_procid();
    8     unsigned int    cluster_xy = procid/NB_PROCS_MAX;
    9     unsigned int    lpid       = procid%NB_PROCS_MAX;
    10     unsigned int    x          = cluster_xy >> Y_WIDTH;
    11     unsigned int    y          = cluster_xy & ((1<<Y_WIDTH)-1);
     7
     8    // get processor identifiers
     9    unsigned int    x;
     10    unsigned int    y;
     11    unsigned int    lpid;
     12    giet_proc_xyp( &x, &y, &lpid );
    1213
    1314    giet_tty_printf( "*** Starting task hello on processor[%d,%d,%d] at cycle %d\n\n",
Note: See TracChangeset for help on using the changeset viewer.