Repository navigation
test: restore bounded GPU correctness tests - #1026
Stardust0831 wants to merge 1 commit into
Conversation
|
The two Fedora Rawhide Packit failures appear unrelated to this PR. Both fail while linking the existing |
I can take care of this. Similar issue also happened with CP2K. Edit: Done with #1027. |
b843ad1 to
4513996
Compare
|
@Stardust0831 thanks for your PR. I must admit, the checks of the GPU kernels are less and less important nowadays since we now provide a generic kernel. The other limitation is that CI doesn't check GPU execution at all, so there is no way to verify it (I will do it manually in the next days). |
|
Thanks @Growl1234 for quickly tracking this down and fixing the Fedora Rawhide/GCC 16 C API linking issue in #1027! After rebasing onto the latest |
|
Hi, is there any progress? |
No, this is a no-go since that code will be removed at some point (and restoring old stuff with AI is not a good idea). Why are you asking? |
|
I'm simply asking because there hasn't been further response for the past two months. Now that the direction is clear, I have no problem with it. |
|
Yes, that's reasonable (no issues), but I care more about functionality... Note that the PR reintroduces tests on GPUs that are not executed in the DBCSR CI (we only compile HIP/CUDA, no tests are executed). |
|
Understood — closing this PR. With the generic-kernel fallback in place, these checks are indeed largely obsolete, and the V100 validation results above stay here for reference. One more thing: regarding the point that CI cannot verify GPU execution — this is actually solvable. I recently landed a solution of the same pattern upstream in ABACUS (deepmodeling/abacus-develop#7665): GitHub Actions acts only as the control plane, driving a Slurm cluster over SSH to do real builds and GPU tests (including multi-node cases), with results reported back to the PR as summaries and logs. If this approach would help GPU-acceleration-related development in DBCSR, I'm happy to provide the test environment and compute resources free of charge to run real tests. |
|
Please, do not close it. I keep it as a placeholder for things to do. |
Motivation
The
libsmm_acc_unittest_multiplyandlibsmm_acc_unittest_transposeexecutables are built for CUDA and HIP, but their CTest registrations have been disabled because the original tests were not parallelized and were too slow (see #427). As a result, accelerator builds currently compile the tests without running their correctness checks.Fixes #427.
Changes
gpu;libsmm_acc, run them serially to avoid GPU contention, and provide configurable rank and timeout settings.Non-MPI builds continue to execute the same tests directly with one process.
No production DBCSR kernel or accelerator code is changed.
GitHub Actions red/green validation
I ran the same temporary self-hosted workflow against the code before and after this patch. The workflow itself is kept only on validation branches in my fork and is not part of this PR.
developplus only the temporary workflowTotal Tests: 0andtest_rc=8dbcsr-v100-gha-gpu-before-29677536620artifact
libsmm_acc_unittest_multiply: passed in 50.27 slibsmm_acc_unittest_transpose: passed in 3.47 sdbcsr-v100-gha-gpu-after-29677660083artifactAdditional validation
As a separate validation of the MPI/device-sharding approach, I also ran
libsmm_acc_timer_multiplywith a benchmark-only patch on 1, 2, 4, 8, and 16 V100 GPUs. A fixed 1,024-kernel workload reached 1.98x, 3.44x, 4.82x, and 7.59x speedup, respectively, and all CPU checksum validations passed. The timer changes are not included in this PR.CUDA runtime behavior was validated on V100 GPUs. HIP/ROCm remains covered by the existing compile CI, but I did not have an AMD GPU runner for a HIP runtime test. These are DBCSR backend correctness tests rather than CP2K application
regression inputs. The upstream GitHub Actions accelerator jobs currently compile these executables without access to a physical GPU; this PR makes the tests runnable by GPU-enabled CTest environments but does not add a permanent GPU runner.