[espresso] QE GPU(CUDA/OpenACC)ビルドモード追加(kugui A100 検証済み) - #201
Open
k-yoshimi wants to merge 2 commits into
Open
Conversation
New config/gpu mode builds the NVIDIA GPU port of Quantum ESPRESSO with the
NVHPC compilers (nvfortran/nvc) via -DQE_ENABLE_CUDA=ON (OpenACC + OpenMP +
MPI, ScaLAPACK off). Requires an NVHPC/CUDA toolchain and a CUDA-aware MPI;
nvfortran targets the build node's GPU by default, overridable with
MA_EXTRA_FLAGS="-gpu=ccXX". This mode needs a GPU and is not covered by CI.
Also convert test/scf.in from CRLF to LF: the DOS line endings are tolerated
by CPU QE (gfortran/ifort) but make nvfortran-built pw.x reject the input
cards ("ATOMIC_SPECIES ignored"). LF works for both.
Verified on ISSP kugui (A100, PBS GPU node): the build links CUDA and pw.x
reports "GPU acceleration is ACTIVE. 1 visible GPUs per MPI rank" / JOB DONE.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QaWKJsSQqCakkMEKZpJcvP
make_rst.py mirrors apps/espresso/README.md into the Sphinx appendix stub; add the same GPU build section to the en/ja appendix so they stay in sync. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QaWKJsSQqCakkMEKZpJcvP
Collaborator
Author
AI レビューサイクル結果(Codex + Antigravity)Phase 1 — Codex(コード correctness)
Phase 2 — Antigravity(ドキュメント / ワークフロー)
検証物性研 kugui(A100)で must_fix 系は無し/指摘は対応済み。収束と判断します。 |
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.
概要
apps/espresso(QE 7.3, CMake)に GPU ビルドモードconfig/gpuを追加します。QE の first-class な GPU 対応(-DQE_ENABLE_CUDA=ON)を使い、NVHPC コンパイラ(nvfortran/nvc)+ CUDA-aware MPI で GPU 版pw.x等をビルドします。追加内容
config/gpu/preprocess.sh:-DQE_ENABLE_CUDA=ON -DQE_ENABLE_OPENACC=ON -DQE_ENABLE_OPENMP=ON -DQE_ENABLE_MPI=ON -DQE_ENABLE_SCALAPACK=OFF、CC=nvc/FC=nvfortran。build/install は既存の default にフォールバック。test/scf.inを CRLF → LF に変換: DOS 改行は CPU 版 QE(gfortran/ifort)では許容されるが、nvfortran ビルドのpw.xは入力カードを弾く(ATOMIC_SPECIES ignored)。LF なら CPU/GPU 双方で動作。MA_EXTRA_FLAGS="-gpu=ccXX"での arch 指定、CI 対象外)を明記。GPU arch について
nvfortranは既定でビルドノードの GPU を対象にするため、MateriApps の「対象マシンでビルド」フローでは追加設定不要です。対象 GPU の無いノードでビルドする場合のみMA_EXTRA_FLAGS="-gpu=cc80"(A100)等で指定します。検証(物性研 kugui, NVIDIA A100, PBS GPU ノード)
pw.xが CUDA ライブラリにリンク。GPU acceleration is ACTIVE. 1 visible GPUs per MPI rank/JOB DONE.(pw.xexit 0)。CI について
本モードは NVIDIA GPU + NVHPC/CUDA が必要なため GitHub CI では検証不可(ランナーに GPU/NVHPC 無し)。既存の CPU モード(default/intel/amd)の CI はそのままです。kugui GPU ノードでの実機検証が検証手段です。
🤖 Generated with Claude Code