Repository navigation
Conversation
Adds a separate, non-required workflow (manual, weekly and on CUDA-related changes) that builds the CUDA backend with shared libraries and runs the test suite on a simulated NVIDIA A100 via pantheongpu/setup-pantheonsim, pinned by commit SHA. Uses read-only permissions.
saqibkh
force-pushed
the
ci-simulated-gpu
branch
from
October 8, 2026 13:48
52d01ff to
4fe3016
Compare
This branch has not been deployed
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.
Disclosure: I am the author of PantheonSim (https://github.com/pantheongpu/pantheonsim) and of the
setup-pantheonsimaction used here. Please weigh this accordingly.What this does
CI currently builds and tests only the OpenMP backend ("Tests OpenMP"); the CUDA backend is never executed because hosted runners have no GPU. This adds a separate workflow,
tests_cuda_simulator.yml, that builds the CUDA backend and runs the existing test suite (tools/backend/configure_cuda.sh,tools/build.sh,tools/run_tests.sh, unchanged) on a simulated NVIDIA A100 onubuntu-24.04.workflow_dispatch, weekly schedule, and PRs touching the CUDA backend, impl, tests, CMake files or the workflow itself. It is a separate workflow and not part of any required check; I'd suggest keeping it that way.permissions: contents: read,persist-credentials: false, 60 min timeout.actions/checkoutv7.0.1,pantheongpu/setup-pantheonsimv0.1.3); your existing dependabot config for actions will propose bumps.-DSTDGPU_BUILD_SHARED_LIBS=ON(the simulator provides a shared cudart; with static stdgpu libraries the tests fail) and-DCMAKE_CUDA_ARCHITECTURES=80-virtual(PTX only, which the simulator JIT-compiles).Result: the CUDA test suite (702 tests) passes on the simulated A100 in about 5 minutes of test time, run exactly as the workflow does (configure_cuda.sh with the flags above, build.sh, run_tests.sh) against the simulator commit the pinned action builds. Local caveat: I used Ubuntu's CUDA 12.0 toolkit with g++-12 rather than the 12.6 the workflow installs, and I could not run the workflow on GitHub itself without pushing.
Tradeoffs, honestly
configure_cuda.shenables warnings-as-errors; a different toolkit than the one I tested with could surface new warnings.Happy to change triggers, GPU model, toolkit version, or drop the schedule.
Update: re-pinned to
setup-pantheonsimv0.1.3 and re-ran this job locally against that release's simulator: same results as above. That release's simulator no longer ships NVIDIA's cuDNN headers in its source tree; they are downloaded from thenvidia-cudnn-cu12wheel when it is built, so the first build (or any cache miss) fetches a wheel of several hundred MB.