Skip to content

Specify single-block limitation on puzzle 11 pattern#243

Merged
dunnoconnor merged 1 commit intomainfrom
mdoc/11
Apr 21, 2026
Merged

Specify single-block limitation on puzzle 11 pattern#243
dunnoconnor merged 1 commit intomainfrom
mdoc/11

Conversation

@dunnoconnor
Copy link
Copy Markdown
Member

Added a blockquote note to book/src/puzzle_11/puzzle_11.md in the solution explanation section (after step 3, "Main window operation") that:

  1. Explains the single-block assumption and why the current code is safe for this puzzle's config
  2. Warns that copying the pattern into multi-block kernels would cause out-of-bounds shared memory reads
  3. Shows the correct multi-block guard pattern using local_i checks with global memory fallbacks for halo elements

Closes Issue #220

@dunnoconnor dunnoconnor requested a review from BradLarson April 21, 2026 13:50
@dunnoconnor dunnoconnor merged commit aed4a84 into main Apr 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants