Changeset 295 for soft/giet_vm/pgcd
- Timestamp:
- Mar 26, 2014, 6:44:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/pgcd/main.c
r254 r295 1 1 #include "stdio.h" 2 #include "hard_config.h" 2 3 3 4 ///////////////////////////////////////// … … 7 8 unsigned int opy; 8 9 9 giet_tty_printf("Starting task PGCD on processor %d at cycle %d\n", 10 giet_procid(), giet_proctime()); 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); 15 16 giet_tty_printf( "*** Starting task pgcd on processor[%d,%d,%d] at cycle %d\n\n", 17 x, y, lpid, giet_proctime() ); 11 18 12 19 while (1)
Note: See TracChangeset
for help on using the changeset viewer.