Skip to content

fix(das): skip out-of-bounds alg1 IQ loads - #3

Closed
sdiebolt wants to merge 1 commit into
BrainEchoLab:mainfrom
sdiebolt:fix/das-alg1-oob-iq-load
Closed

sdiebolt wants to merge 1 commit into
BrainEchoLab:mainfrom
sdiebolt:fix/das-alg1-oob-iq-load

Conversation

@sdiebolt

Copy link
Copy Markdown

Closes #2.

das_alg1_kernel now skips the IQ lerp/load when the computed sample index is out of bounds, instead of relying on a zero weight after the load.

Zeroing the DAS weight for out-of-bounds reads is not enough: the
lerp still loads x[offs0], which is an illegal memory access when
planewave offsets are not clipped to the IQ buffer. Skip the load
unless the sample index is in bounds.
@jvoor

jvoor commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Fixed with #4

@jvoor jvoor closed this Oct 12, 2026
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.

das_alg1 reads IQ out of bounds for deep voxels

2 participants