mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #388] [CLOSED] Make the JIT cache key independent of the install include path #409
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#409
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/388
Author: @matteso1
Created: 7/20/2026
Status: ❌ Closed
Base:
main← Head:jit-cache-key-relocatable📝 Commits (1)
865b0ceMake the JIT cache key independent of the install include path📊 Changes
1 file changed (+24 additions, -1 deletions)
View changed files
📝
csrc/jit/compiler.hpp(+24 -1)📄 Description
The kernel cache key embeds the absolute
-I{library_include_path}token viaflags, so a byte-identical kernel re-JITs and duplicates cache entries whenever the install prefix differs (venv rename, container build-layer vs runtime layout, moved NFS mount). That defeats sharing aDG_JIT_CACHE_DIRacross layouts.This strips that one token from the key (
strip_flag_token, exact match, key computation only; the compile command andDG_JIT_DEBUGoutput are unchanged). It stays safe because that directory's header content is already keyed through the include hash embedded incode(IncludeParser::get_hash_value); everything else stays keyed: the compiler-versionsignature, every behavioral flag, and every other-I(NVRTC'scuda_home/includeheaders are not content-hashed, so their path stays). Since the key changes, existing entries re-JIT once under it.This PR follows simon-mo's request on the open vllm-project/vllm#48190 to propose the relocation fix upstream instead of carrying it as a vendored patch. The vendored variant proposed there also drops the version field; on H100, relocating a prebuilt cache across install layouts turned a guaranteed miss into a hit and cut 93.7s from a Qwen3-30B-A3B-FP8 cold start (n=1). This PR deliberately keeps the version field keyed.
Related but distinct: #301/#302 (JIT cache concurrency), #333 (wheel portability).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.