Skip to content

Place patches correctly when decoding sliced ALP arrays on the GPU - #11882

Open
vishalkotak wants to merge 1 commit into
vortex-data:developfrom
vishalkotak:vishalkotak/alp-cuda-sliced-patches
Open

vishalkotak wants to merge 1 commit into
vortex-data:developfrom
vishalkotak:vishalkotak/alp-cuda-sliced-patches

Conversation

@vishalkotak

Copy link
Copy Markdown
Contributor

The standalone ALP CUDA kernel decoded patches at the wrong rows when an ALP array's patches start partway into a 1024-row chunk, as they do after ALP's slice kernel or in a file that stores a sliced ALP array. In a 5..1000 slice, the outlier from row 5 stayed at row 5 instead of moving to row 0. Lazy slices from scans aren't affected, since dispatch decodes the whole array and slices the output.

The kernel now decodes chunk-aligned rows and trims the shift off the front, the same fix #11707 made for ALP-RD. Arrays that start on a chunk boundary keep the existing fast path.

I used Claude Code for analysis, debugging, and ideas.

Signed-off-by: Vishal Kotak <22182951+vishalkotak@users.noreply.github.com>
@vishalkotak

Copy link
Copy Markdown
Contributor Author

@0ax1 this is the ALP side of the slicing fix from #11707, if you have a minute. The full vortex-cuda suite passes on an L4.

@0ax1
0ax1 self-requested a review November 23, 2026 23:44

This branch has not been deployed

No deployments
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.

1 participant