Repository navigation
Conversation
Complete the HIP build and link paths, including pitched memory copies, BLAS and LAPACK adapters, and the missing plane-wave kernels. Use the ABACUS rank-to-device assignment for both AMD and NVIDIA ELPA so that separate k-point pools use their intended devices. Validated the full df_dcu build and kpar=1 on Si2 and spinor Fe2 (Slurm 23528436). Fe2 also converged with kpar=2 on two MPI ranks and two DCUs in Slurm 23529536. Each pool used a distinct DCU. Energy and forces matched the kpar=1 CPU reference at printed precision. The maximum stress component difference was 1.01e-10 kbar.
This branch has not been deployed
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.
Problem
Native ELPA cannot use AMD GPUs for a single-k-point LCAO solve. A Γ-point SCF iteration has one dense generalized eigenproblem. This PR enables AMD GPU ELPA so MPI ranks can distribute the matrices and solve that eigenproblem across DCUs.
Independent k-point pools can select the same GPU. With
kpar > 1, different pools can each have an ELPA rank 0 and select GPU 0 when both ranks see the same devices. This PR passes ABACUS’s per-rank GPU ID to ELPA on NVIDIA and AMD.The full ABACUS executable fails to build with ROCm. Build flag and HIP library incompatibilities block compilation, and missing HIP operators block linking. This PR addresses both so
abacus_basic_gpucan run a full SCF calculation on DCUs.Linked Issue
Fixes #8516. Fixes #8517. Related to #8508.
What's changed?
amd-gpuinDiagoElpaNative. Pass ABACUS’s assigned device ID to both NVIDIA and AMD ELPA so independent k-point pools use their assigned devices.abacus_basic_gpu.Unit Tests and/or Case Tests for my changes
abacus_basic_gpuwithcmake --build build --target abacus_basic_gpuon df_dcu using DTK 25.04.3 and AMD ELPA 2026.02.001 with RCCL. Enabled ROCm, MPI, LCAO, and ELPA. LibRI was disabled.02_NAO_Gamma/scf_force_stressand spinor Fe₂03_NAO_multik/scf_angle_spin4inputs withmpirun -np 2 --bind-to core /path/to/abacus_basic_gpu,ks_solver elpa,device gpu,kpar 1, andnb2d 2. Both converged within2e-12 eVof CPU ELPA. Rank logs and rocBLAS traces confirmed both DCUs, and ELPA reported RCCL active (Slurm23528436).kpar 2. Each pool used a separate DCU. Total energy and forces matched thekpar 1CPU reference at printed precision, and the largest stress difference was about1e-10 kbar(Slurm23529536).geqrfandhegvximplementations.Governance Notes
basis_type lcao,ks_solver elpa, anddevice gpucombination for AMD GPU ELPA.USE_ROCMstill emits its deprecation warning.Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.