Repository navigation
Precompile the workload for a single architecture - #356
Merged
Merged
Conversation
The precompile workload compiled each kernel for up to eight architectures, running tileiras once per kernel and architecture. That was needed while the cache key, and with it the compiler's specializations, depended on the architecture; since compilation jobs replaced those keys `sm_arch` is a runtime value, so one target precompiles the same code. Blackwell is the target every supported bytecode version accepts.
Precompiling the workload for a single architecture means a launch on any other architecture loads a const-return CodeInstance from the package image and recompiles it. CompilerCaching before 0.5.4 failed to recover the source of such CodeInstances on Julia 1.13 and later.
maleadt
force-pushed
the
tb/precompile-single-arch
branch
from
November 24, 2026 09:58
abe5c85 to
33f4c7c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The precompile workload compiles each kernel for eight architectures. That was needed while the compilation cache key depended on the architecture; since #311 the architecture is a runtime value, so the extra targets only add
tileirasruns and package-image entries for kernels nobody launches.This compiles for sm_100 only, which every supported bytecode version can target. Precompilation drops from about 18.5 s to 16.4 s; load time and the first launch are unchanged. It requires CompilerCaching 0.5.4 (maleadt/CompilerCaching.jl#36), which fixes recompiling const-return functions loaded from a package image for an architecture that wasn't precompiled.