Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Posrabi committed Apr 7, 2023
1 parent 500a1d4 commit d4898fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions board_optimized.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ template <int size> 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
Expand Down

0 comments on commit d4898fc

Please sign in to comment.