Repository navigation
Conversation
Author
|
Closing this for now and cleaning up our fork. Thanks for taking a look, and we are happy to open a fresh PR if it would be useful. |
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 "NVIDIA Build (No Test)" job compiles the CUDA backend, but its Test step is commented out because the hosted runners have no GPU. This adds a separate, optional workflow
.github/workflows/gpu-sim.ymlthat builds the same CUDA configuration and runsgauxc_teston a simulated NVIDIA H100 using PantheonSim (no GPU needed). I am the author of PantheonSim, so please weigh this accordingly.It adds one file, changes no source and no existing workflow, 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 the workflow does:
masterthat touchinclude/,src/,tests/,cmake/,CMakeLists.txtor the workflow, with a concurrency group that cancels superseded runs.pantheongpu/setup-pantheonsim(pinned by commit), pluslibhdf5-dev,libopenblas-devandninja-buildfrom apt. ExchCXX, Libxc, gau2grid, IntegratorXX, HighFive, Eigen and Catch2 come through the existing FetchContent paths.GAUXC_ENABLE_CUDA=ONand MPI, MAGMA, CUTLASS and NCCL off (as in the "NVIDIA Build" job),CMAKE_CUDA_ARCHITECTURES=90-virtual(PTX only, which the simulator runs) andCMAKE_CUDA_RUNTIME_LIBRARY=Shared(the simulator needs the shared CUDA runtime; GauXC itself already linksCUDA::cudartunlessGAUXC_LINK_CUDA_STATICis set, so nothing is patched).vgpu run ./build/tests/gauxc_test "~[xc-integrator]".What runs on the simulated GPU (from the simulator's per-kernel counters):
[collocation]: the CUDA collocation sections, which launchcollocation_device_masked_combined_kernel(plus_deriv1) and thecollocation_device_shell_to_task_kernel_*kernels for l = 0, 1, 2 (value, gradient, Hessian, Laplacian and Laplacian gradient), compared withwater_cc-pVDZ_collocation.hdf5.[weights]: "Device Weights", which launchescompute_grid_to_center_distandmodify_weights_ssf_kernel_1d, compared withbenzene_weights_ssf.hdf5.[load_balancer]: "Default Device", which launchesload_balancer::cuda::collision_detection_gpu,bitvector_to_position_listand a CUB scan, and checks that host and device tasks are identical.[runtime]constructs, copies and movesDeviceRuntimeEnvironment(device memory, streams, cuBLAS handles) without launching kernels. The other tags ([c-api],[dd],[orbital_evaluator], ...) launch no kernels.The workflow now also runs the smallest device case of "XC Integrator" (Li / SVWN5 / sto-3g). The larger molecules take 8 to 24 minutes each on the simulator, so they stay out; their host sections already run in "Release Build and Test". Run with setup-pantheonsim v0.1.8: https://github.com/saqibkh/GauXC/actions/runs/43538139755 .
Measured on my fork (hosted
ubuntu-24.04runners):modify_weights_ssf_kernel_1dby 1.001, and the primitive sums in the masked combined andcartesian_0shell-to-task collocation kernels by 1.001. "Device Weights" failed 678 of 224,136 checks and[collocation]failed 49,711 of 584,441, while the host sections still passed: https://github.com/saqibkh/GauXC/actions/runs/43476808107 (weights) and https://github.com/saqibkh/GauXC/actions/runs/43479628964 (collocation).Not covered: