Skip to content

Add a workflow that runs the CUDA tests on a simulated H100 - #115

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

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

Conversation

@saqibkh

@saqibkh saqibkh commented Nov 15, 2026

Copy link
Copy Markdown

The CI builds with ENABLE_CUDA off, so the CUDA backend and the CUDA branches of the GWR tests are never run. This adds .github/workflows/gpu-sim.yml, which builds with -DENABLE_CUDA=ON and runs them on a simulated NVIDIA H100 using PantheonSim (no GPU needed). I am the author of PantheonSim, so please weigh this accordingly.

The simulator needs the shared cudart and cuBLAS, so the workflow seds CUDA::cudart_static and CUDA::cublas_static to the shared targets in src/CMakeLists.txt on the runner only; no repo file is changed.

Run on my fork: https://github.com/saqibkh/libgwmodel/actions/runs/43598311130 (passed; cold setup about 16 minutes, build 1 minute, tests 20 seconds). It runs testCuMat, the two cancel tests and the GWRBasic and MGWR sections that pass. These sections currently fail on the simulator, so they are left out for now: GWRBasic "adaptive bandwidth | bandwidth optimization | no variable optimization", and four MGWR "basic flow" sections plus "Multiscale GWR: cancel". The simulator reports out-of-bounds cudaMemcpy reads and a use-after-free of the CRSDistance device buffers in them; the same tests pass on a real GPU.

This branch has not been deployed

No deployments
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