OpenMP with Game of Life visualization using SFML
问题 Hello I'm trying to compare speeds between serial and parallel version of 'Game of Life'. I used SFML library to visualize game of life like this. SFML window Serial logic is simple like below. for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { int neighbor = 0; // check 8 cells around. // 1 2 3 -1 // 4 5 0 // 6 7 8 +1 // (1) if (gamefieldSerial.isAvailableCell(UP(i), LEFT(j))) { if(gamefieldSerial[UP(i)][LEFT(j)] == LIVE) neighbor++; } // (2) if (gamefieldSerial