mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #405] CUDA Illegal Instruction in test_k_grouped_gemm_contiguous #185
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @henny-bee on GitHub (Aug 12, 2026).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/405
I encountered a CUDA kernel error while running the
test_k_grouped_gemm_contiguoustest with the matrix dimensions explicitly set to:M = 768N = 1536The test fails with the following error:
The error appears to originate from a CUDA kernel execution. Since CUDA errors can be reported asynchronously, the reported stack trace may not point to the actual source of the failure.
For debugging, I also considered using:
and enabling device-side assertions with
TORCH_USE_CUDA_DSA.Question
Is the
M=768, N=1536shape combination currently supported by the grouped GEMM implementation?If this shape is expected to be supported, could there be a kernel configuration or shape-related issue causing the illegal instruction?
Environment
test_k_grouped_gemm_contiguous7681536CUDA error: an illegal instruction was encountered@PavelPaha commented on GitHub (Aug 25, 2026):
Hi @henny-bee, this has already been fixed on the current main branch by:
github.com/deepseek-ai/DeepGEMM@1f6f3f3789@XFDG commented on GitHub (Sep 13, 2026):
Hi, I verified this on the current main branch (
66081d4c) on an NVIDIA B200 (SM100) with CUDA 13.1.Using 8 small K groups with the reported
M=768, N=1536shape, 50/50 synchronizedk_grouped_fp8_gemm_tn_contiguouslaunches completed without an illegal instruction. The output stayed finite and bitwise deterministic across all launches. This confirms that the tensor-map race fix in1f6f3f378920ccb5cc036ef43eb3f5972e921713covers this failure on current main.