diff --git a/Readme.md b/Readme.md index 6b52c2a..2767709 100644 --- a/Readme.md +++ b/Readme.md @@ -8,7 +8,7 @@ You need to have opencv4 installed, then run make ``` -That's it, all you need to do now is run +To use the optimzied version, you might need to increase the size of the stack. That's it, all you need to do now is run ```bash ./main diff --git a/board_optimized.h b/board_optimized.h index a5d09db..800255d 100644 --- a/board_optimized.h +++ b/board_optimized.h @@ -36,6 +36,7 @@ template class BoardOptimized { int right_wrap{(j + 1) & mod}, up_wrap{(i - 1) & mod}, down_wrap{(i + 1) & mod}, left_wrap{(j - 1) & mod}; + // Add to the neighbor count of the neighboring cell (bit 1 - 4) #pragma omp atomic update cells[down_wrap][right_wrap] += off; #pragma omp atomic update