Skip to content

Add an optional workflow that runs the tests on a simulated H100 - #547

Open
saqibkh wants to merge 1 commit into
NVlabs:masterfrom
saqibkh:add-gpu-sim-ci
Open

saqibkh wants to merge 1 commit into
NVlabs:masterfrom
saqibkh:add-gpu-sim-ci

Conversation

@saqibkh

@saqibkh saqibkh commented Nov 9, 2026

Copy link
Copy Markdown

The existing CI builds the tests but never runs them, because the hosted runners have no GPU. This adds a separate, optional workflow .github/workflows/gpu-sim.yml that builds the tests with CUDA 13.0 and runs them on a simulated NVIDIA H100 using PantheonSim (no GPU needed). I am the author of PantheonSim, so please weigh this accordingly.

It does not touch main.yml and is not meant to be a required check. A simulator cannot reproduce hardware-specific behaviour or timing, so it complements real-GPU testing and does not replace it.

What it does:

  • installs the CUDA 13.0 toolkit and the simulated H100
  • configures with TCNN_BUILD_TESTS=1, TCNN_CUDA_ARCHITECTURES=90-virtual (PTX only, which the simulator runs) and a shared CUDA runtime; benchmark and samples are off
  • builds the tests and runs them under vgpu run
  • runs on manual dispatch and on pull requests that touch include/, src/, tests/ or CMakeLists.txt, with a concurrency group that cancels superseded runs, and uses ccache

Left out:

  • test_networks is run only for its "NetworkWithInputEncoding empty-batch activations" case. The "Various invariance checks" case (JIT against non-JIT, 55 failed assertions, then a read of address 0 in kernel_mlp_fused_backward) and "FullyFusedMLP non-JIT double backward" (3 of 5 rows) fail on the simulator, although the same tests pass on a real RTX 3060 (sm_86). I have not found out whether that is a simulator limitation or something else, and I have a report for the simulator side.
  • TCNN_BUILD_WITH_RTC=OFF is not used: on master it does not link (undefined reference to tcnn::CudaRtcKernel::set(CUfunction_attribute_enum, int)), so runtime compilation stays on. Happy to look at that separately if useful.

Notes:

  • test_encodings, test_grid, test_jit_losses and test_permuto pass on the simulator.
  • On a hosted runner the first run took about 19.5 minutes in total: about 14.5 minutes of simulator setup, 2.7 minutes to build and 1.9 minutes to run the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant