mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #428] [CLOSED] fix: reject non-positive block size multiples #439
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#439
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?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/428
Author: @nisbenz
Created: 9/7/2026
Status: ❌ Closed
Base:
main← Head:fix/validate-block-size-multiples📝 Commits (1)
605ae56fix: reject non-positive block size multiples📊 Changes
2 files changed (+21 additions, -0 deletions)
View changed files
📝
csrc/jit_kernels/heuristics/runtime.hpp(+1 -0)➕
tests/test_runtime.py(+20 -0)📄 Description
Summary
Reject zero and negative values passed to
set_block_size_multiple_of.These values are currently stored without validation and later used by the
SM90 and SM100 kernel-selection heuristics. A zero value can produce
modulo-by-zero or a candidate loop with a zero increment.
This change fails early with a
RuntimeErrorand adds regression coverage forboth scalar and
(M, N)inputs.Testing
python -m compileall -q tests/test_runtime.pygit diff --check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.