From d4898fc4da51f60ffd04e5bb13bc742b10fac2ac Mon Sep 17 00:00:00 2001 From: tridao Date: Fri, 7 Apr 2023 02:51:32 -0400 Subject: [PATCH] More docs --- Readme.md | 2 +- board_optimized.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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