Repository navigation
Conversation
saqibkh
force-pushed
the
add-gpu-sim-ci
branch
from
November 11, 2026 14:21
6c9035d to
1602bd2
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
cuda-cmake-testjob inci.ymlbuilds the CUDA tests but does not run them, because the hosted runners have no GPU. This adds a separate, optional workflow.github/workflows/gpu-sim.ymlthat builds the same tests and runs them on a simulated NVIDIA H100, using PantheonSim (via thepantheongpu/setup-pantheonsimaction, pinned by SHA). I am the author of PantheonSim, so please weigh this accordingly. The same simulator already runs in theboostorg/mathCI.It does not touch
ci.ymland is not meant to be a required check. A simulator cannot reproduce hardware-specific behavior or timing, so it complements the real-GPU runs and does not replace them.What it does:
-DBOOST_INT256_ENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=90-virtual -DCMAKE_CUDA_STANDARD=17 -DCMAKE_CUDA_RUNTIME_LIBRARY=Shared(PTX-only device code and a shared CUDA runtime, which the simulator needs).-j3and runs all 86 CTest entries withvgpu run ctest -j3.workflow_dispatchandpull_requesttodeveloplimited toinclude/,test/,CMakeLists.txtand the workflow itself. A concurrency group cancels superseded runs, withpermissions: contents: read.What is left out:
.cutests plus theexample/cuda.cuexample) pass.Result on a fork: one job,
100% tests passed, 0 tests failed out of 86. On a cold cache the job took about 32 minutes in total: the action's simulator setup about 20 minutes, building all the tests 8 minutes and running them 3.6 minutes. The managed-memory harness (cudaMallocManaged) works under the simulator. I also checked that a test fails when its kernel output is made wrong (the test reports a verification failure and exits 1).Run: https://github.com/saqibkh/int256/actions/runs/43017538599