Repository navigation
device_tests and examples hold a B200 while compiling on a fraction of a CPU - #93
Merged
Merged
Conversation
This was referenced Jul 28, 2026
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.
Found while #88 waited 44 minutes on a
::examplesrun that produced nocontainer output at all — long enough that a slow build could not be told from
a hang.
device_testsandexamplesdeclaregpu=DEFAULT_GPUand nocpu=. Both runcargo oxide run, which compiles the crate before it launches anything —the work
build's own decorator comment prices at "ten-odd minutes" withcpu=8, and which takes closer to forty on Modal's fractional default.A GPU function is billed for the whole container. So those minutes are billed
at B200 rates to run a Rust compiler, which is the worst cost ratio in this
file, and it is paid on the two gates every single change runs.
buildandregcounthave always saidcpu=8; #86 added it tobench,ladder_benchandprofile. These two were simply missed, so this is closing agap rather than changing a policy. Timeouts go to 5400 to match the others.
Not a guess about the cause:
ladder_benchcarries a comment saying thedependency tree is ten-odd minutes of compilation and that is why it asks for
eight cores.
Why this is worth its own PR rather than riding along
Three agents are running gates right now and every one of them pays this. It
also plausibly contributed to the spend limit this workspace hit earlier today,
which took tiers 2 and 3 of CI down until it was raised.
doctoris deliberately left alone:cargo oxide doctorruns in the prebuilt/opt/warmup, so it compiles nothing.Verification
modal_app.pyparses, and CI'sbuildjob exercisesmodal run modal_app.py::build— which is the function whose decorator this PR copies,unchanged. The change is a resource annotation on two functions; it alters no
command, no path and no output.