Skip to content

logprob.cu: pass the thread count to tf_launch_blocks (fixes the torch-ops gate compile) - #539

Merged
ashhart merged 1 commit into
ashhart:mainfrom
GustavBlack:logprob-launch-args
Oct 10, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
GustavBlack:logprob-launch-args

Conversation

@GustavBlack

Copy link
Copy Markdown
Contributor

One-commit fix for #535.

launch_shape.h's tf_launch_blocks(count, threads) takes two arguments; logprob.cu still called
it with one, so the file does not compile with the serving container's nvcc 13.3.73 — which
tools/zig/check_torch_ops.py compiles, so the torch-ops gate cannot run as shipped at v1.0.2.
logprob.cu is not in the release fatbin list, so shipped binaries are unaffected.

The change passes the same 256-thread block size the launch already assumes; the grid is exactly
what the other nine kernels compute.

Validated on a GB10 (aarch64) with the pinned container's nvcc: the full 9-kernel torch set and the
11-kernel nemotron set compile clean, and both GPU cell gates then ran with the checkers unmodified
(check_torch_ops.py 825/825 cells exact, check_nemotron_ops.py 777/777 cells exact). Receipts
available if useful. (The work was developed with AI assistance on our 2×GB10 bring-up testbed;
authorship is mine.)

launch_shape.h's tf_launch_blocks(count, threads) takes two arguments; logprob.cu
still called it with one, so the file does not compile with the serving
container's nvcc 13.3.73 (check_torch_ops.py compiles it, so the torch-ops gate
cannot run as shipped). Pass the same 256-thread block size the launch already
assumes; the grid is what the other kernels compute. logprob.cu is not in the
release fatbin list, so shipped binaries are unaffected.

Fixes ashhart#535
@plotarmordev

Copy link
Copy Markdown
Contributor

Receipt from a DGX Spark (GB10, nvcc 13.3.73, the flags in tools/zig/ops_build.py): logprob.cu on main (f8fe17d2) fails with too few arguments in function call at lines 49 and 60. With this PR (1746f7d1) it compiles cleanly.

@ashhart
ashhart merged commit 9590e2d into ashhart:main Oct 10, 2026
@ashhart

ashhart commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Thank you @GustavBlack. Merged into main (9590e2d): logprob.cu passes the thread count to tf_launch_blocks, so it compiles with nvcc 13.3 again and the torch-ops check can run. Closes #535.

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.

3 participants