mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #427] Improve error when cuobjdump is missing or fails #440
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#440
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/427
Author: @monperrus
Created: 9/6/2026
Status: 🔄 Open
Base:
main← Head:fix/cuobjdump-missing-diagnostic📝 Commits (1)
b75f054jit: actionable error when cuobjdump is missing or fails📊 Changes
1 file changed (+19 additions, -2 deletions)
View changed files
📝
csrc/jit/kernel_runtime.hpp(+19 -2)📄 Description
Problem
KernelRuntimefinds a cubin's kernel symbol by shelling out to$CUDA_HOME/bin/cuobjdump -symbols kernel.cubinand then assertingDG_HOST_ASSERT(exit_code == 0).cuobjdumpis part of the CUDA toolkit but is packaged separately fromnvcc— e.g. conda'scuda-cuobjdump(orcuda-command-line-tools).A JIT-only CUDA install that has
nvccbut notcuobjdumpcompiles kernelsfine and then dies here with:
which gives the user nothing to go on.
call_external_commandalreadycaptures the command's combined stdout/stderr (it appends
2>&1), but thatoutput — which contains the actual
cuobjdump: not found/ error text — isdiscarded on the failure path.
This is easy to hit from the
kernels/Hugging Face flow and from minimalCUDA containers.
Change
Diagnostics only, no behavior change on the success path:
cuobjdumpexists up front and, if not, report its expected path andhow to fix it (install
cuda-cuobjdump/cuda-command-line-tools, or pointCUDA_HOMEat a full toolkit).instead of the bare
exit_code == 0assertion.Reproduce
A CUDA env with
nvccbut nocuobjdump(e.g.conda create -c nvidia cuda-nvccwithoutcuda-cuobjdump) — any JIT kernelload reaches this path.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.