Repository navigation
feat(profiles): Calibrate A100, H100, B200, B300 with napkin-bench - #19
Merged
Merged
Conversation
napkin-bench: create timing events with CU_EVENT_DEFAULT (cudarc's None defaults to DISABLE_TIMING, breaking cuEventElapsedTime), synchronize via the stream, and call elapsed directly; modal/bench.py: drop serialized (remote module import fails), pass --gpu-request through, surface napkin-bench stderr. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
Summary
This is the first run of the Rust
napkin-benchon real GPUs (ModalA100-80GB:2,H100!:2,B200:2,B300:2; full 7-round runs). It replaces the August PyTorch numbers and adds the first measured B200/B300 numbers. Every committed run passes every check.Bench bugs found on hardware:
stream.alloctakes memory from thecuMemAllocAsyncdefault pool.cuCtxEnablePeerAccessdoesn't cover pool memory, socuMemcpyPeerAsyncsilently went through the host, andcuMemcpyDtoDAsyncover UVA returnedINVALID_VALUE. Peer buffers are nowcuMemAllocmemory (PeerBuffer, RAII).cuMemPoolSetAccessalso fixed the copy, but it made the later tf32 GEMM run out of memory. A new check,g2g_faster_than_host(g2g > h2d), fails any future run where the copy falls back to the host path.ctx.new_event(None)disables timing. Events are now created withCU_EVENT_DEFAULTand synced on the stream.serialized=True(the remote couldn't import the module), passed--gpu-requestthrough, and surfaced napkin-bench stderr on failure.Host-link bandwidth depends on which Modal host the job lands on: H100 measured 56 GB/s in one run and 28 GB/s in the next, and A100 was 12–13 GB/s on some hosts.
Measuredgains four flatOption<u8>fields,pcie_gen,pcie_gen_max,pcie_widthandpcie_width_max, allserde(default)so old JSONs still parse. They are sampled from nvidia-smi right after the h2d/d2h loop. A check,pcie_full_link(current == max), rejects runs on a degraded link. B300 needed 3 attempts becausegpucurrent=6whilegpumax=5on two hosts. The README provenance paragraph now states each GPU's link.Open observation: B300 reports Gen6 x16 but still moves only about 56 GB/s host↔device, so something other than the link appears to cap it. Not investigated.
Link to Devin session: https://app.devin.ai/sessions/35bf1a0a9fbd4f468393e25a9949f875
Open in Devin Desktop: https://app.devin.ai/desktop/session/35bf1a0a9fbd4f468393e25a9949f875?variant=devin
Requested by: @gpu004