Ignore:
Timestamp:
Feb 9, 2015, 8:26:32 AM (10 years ago)
Author:
alain
Message:

Bug fix in the distributed heap mapping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/gameoflife/main.c

    r502 r504  
    2323giet_sqt_barrier_t barrier;
    2424
    25 unsigned int init_ok = 0;
     25volatile unsigned int init_ok;
    2626
    2727#define OLD 0
     
    4242      for(x = 0; x < WIDTH ; x++)
    4343      {
    44          world[OLD][y][x] = giet_rand() % 2; 
     44         world[OLD][y][x] = (giet_rand() >> (x % 8)) & 0x1;
    4545      }
    4646   }
     
    167167   else
    168168   {
    169       while ( init_ok == 0 ) asm volatile("nop");
     169      while ( init_ok == 0 ) asm volatile("nop\n nop\n nop");
    170170   }
    171171
     
    175175   //  parallel world  initialization
    176176   init_world( base_line , nb_line );
    177 
    178 PRINTF("coucou 0\n");
    179 
    180177   display_world( base_line , nb_line );
    181 
    182 PRINTF("coucou 1\n");
    183178
    184179   sqt_barrier_wait( &barrier );
Note: See TracChangeset for help on using the changeset viewer.