Changeset 504 for soft/giet_vm/applications
- Timestamp:
- Feb 9, 2015, 8:26:32 AM (10 years ago)
- Location:
- soft/giet_vm/applications/gameoflife
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/gameoflife/gameoflife.py
r502 r504 107 107 trdid, x, y, p, 108 108 'gol_stack_%d_%d_%d' % (x,y,p), 109 ' ' , 0 ) # no heap => empty string109 'gol_heap_%d_%d' %(x,y) , 0 ) 110 110 111 111 # extend mapping name -
soft/giet_vm/applications/gameoflife/main.c
r502 r504 23 23 giet_sqt_barrier_t barrier; 24 24 25 unsigned int init_ok = 0;25 volatile unsigned int init_ok; 26 26 27 27 #define OLD 0 … … 42 42 for(x = 0; x < WIDTH ; x++) 43 43 { 44 world[OLD][y][x] = giet_rand() % 2;44 world[OLD][y][x] = (giet_rand() >> (x % 8)) & 0x1; 45 45 } 46 46 } … … 167 167 else 168 168 { 169 while ( init_ok == 0 ) asm volatile("nop ");169 while ( init_ok == 0 ) asm volatile("nop\n nop\n nop"); 170 170 } 171 171 … … 175 175 // parallel world initialization 176 176 init_world( base_line , nb_line ); 177 178 PRINTF("coucou 0\n");179 180 177 display_world( base_line , nb_line ); 181 182 PRINTF("coucou 1\n");183 178 184 179 sqt_barrier_wait( &barrier );
Note: See TracChangeset
for help on using the changeset viewer.