Changeset 432 for soft/giet_vm/applications/router
- Timestamp:
- Oct 4, 2014, 4:33:31 PM (10 years ago)
- Location:
- soft/giet_vm/applications
- Files:
-
- 1 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/router/main.c
r345 r432 20 20 mwmr_channel_t* mwmr; 21 21 22 unsigned int procid = giet_procid();23 unsigned int cluster_xy = procid/NB_PROCS_MAX;24 unsigned int lpid = procid%NB_PROCS_MAX;25 unsigned int x = cluster_xy >> Y_WIDTH;26 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1);22 // get processor identifiers 23 unsigned int x; 24 unsigned int y; 25 unsigned int lpid; 26 giet_proc_xyp( &x, &y, &lpid ); 27 27 28 28 printf( "*** Starting task producer on processor[%d,%d,%d] at cycle %d\n\n", … … 52 52 mwmr_channel_t* mwmr; 53 53 54 unsigned int procid = giet_procid();55 unsigned int cluster_xy = procid/NB_PROCS_MAX;56 unsigned int lpid = procid%NB_PROCS_MAX;57 unsigned int x = cluster_xy >> Y_WIDTH;58 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1);54 // get processor identifiers 55 unsigned int x; 56 unsigned int y; 57 unsigned int lpid; 58 giet_proc_xyp( &x, &y, &lpid ); 59 59 60 60 printf( "*** Starting task consumer on processor[%d,%d,%d] at cycle %d\n\n", … … 85 85 mwmr_channel_t* mwmr_out ; 86 86 87 unsigned int procid = giet_procid();88 unsigned int cluster_xy = procid/NB_PROCS_MAX;89 unsigned int lpid = procid%NB_PROCS_MAX;90 unsigned int x = cluster_xy >> Y_WIDTH;91 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1);87 // get processor identifiers 88 unsigned int x; 89 unsigned int y; 90 unsigned int lpid; 91 giet_proc_xyp( &x, &y, &lpid ); 92 92 93 93 printf( "*** Starting task router on processor[%d,%d,%d] at cycle %d\n\n",
Note: See TracChangeset
for help on using the changeset viewer.