Repository navigation
Conversation
Up to standards ✅🟢 Issues
|
|
This is a CI workflow that is very desirable because it can actually test whether CUDA code works on one of the more prominent GPUs today. On the other hand, it is a very heavy workflow that shouldn't run for every update of every PR that is still under development. Is there any simple way of activating this workflow selectively? I could imagine a scenario where it runs only when the tag "Ready" is added to a PR. |
|
Thanks, that makes sense. I've changed it so it only runs on demand, using the existing
Opening a PR or pushing to one without the label doesn't run it, and adding some other label doesn't either. The path filter is unchanged, so it still only applies to PRs that touch |
The CUDA CI here only builds PopSift in the deps containers, because the hosted runners have no GPU, so nothing ever runs the kernels. This adds a separate, optional workflow
.github/workflows/gpu-sim.ymlthat builds PopSift for CUDA and runspopsift-demoon a simulated NVIDIA H100, using PantheonSim (via thepantheongpu/setup-pantheonsimaction, pinned by SHA). I am the author of PantheonSim, so please weigh this accordingly.It does not touch the existing workflows and is not meant to be a required check. A simulator cannot reproduce hardware-specific behavior or timing, so it complements real-GPU testing and does not replace it.
What it does:
CMAKE_CUDA_ARCHITECTURES=90-virtual(PTX only, which is what the simulator runs; the defaultall-majoris a cache variable, so no CMake change is needed).popsift-demoon it in all six descriptor modes (loop, iloop, grid, igrid, notile, vlfeat). Each run must report 212 keypoints and 270 descriptors, and keypoint positions must be identical across modes.loopandvlfeat, which do not use texture interpolation, the sorted output must also match, byte for byte, what an RTX 3060 (built for sm_86) produces. For the interpolating modes only positions and counts are checked: the descriptor values differ from the hardware by a few units in about 0.5% of the components, which I attribute to the hardware texture filter's fixed-point weights.workflow_dispatch, andpull_requestonly when thereadylabel is added or on later pushes to a PR that carries it, limited tosrc/,cmake/,CMakeLists.txtand the workflow itself. A concurrency group cancels superseded runs, withpermissions: contents: read.What is left out:
PopSift_USE_TEST_CMD) is not used: it needs a download and only prints descriptors without comparing them.popsift-matchis built but not run.loopandvlfeatcome from one nvcc 13.0 build, so they may need regenerating if the kernels or the test image change on purpose.Result on a fork: the run passed. The whole job took about 17.7 minutes on a cold cache, of which about 15.5 minutes was the action setting up the simulator. The build took about 40 seconds and the six popsift-demo runs about 66 seconds.
Run: https://github.com/saqibkh/popsift/actions/runs/42384675110