nvvmCompileProgram: failed with error 9: NVVM_ERROR_COMPILATION
nvnvvmd: error: /tmp/nvacc....gpu (39808, 24): parse invalid redefinition of function
'_124_..._src_integrals_integrals_cpp___nv__Z18compute_4c_ol_onediiPiPfiiPdS1_RSt6vectorIS2_IdSaIdEESaIS4_EEiiiiiiiiiiS1_S1_PS1_S8_S8_S8_S1_'
Summary
With the cuBLAS/cuSolver header issue (#98) out of the picture, the GPU build still fails on the Perlmutter login node —
integrals.cppdies during OpenACC device code generation:The redefined symbol demangles to
compute_4c_ol_oned(...)(integrals.cpp:7156) — a long-standing function (June 2024,45c984f), not recent code.Key facts
-acc=gpucompiles for a default compute-capability set rather than a detected device — a possible trigger for duplicate device-function emission across targets.Environment
Suggested diagnostics
integrals.cppalone with an explicit target, e.g.-gpu=cc80, on the login node — if it passes, the default-target-set hypothesis is confirmed and a pinned-gpu=flag (or building on a GPU node) is the answer.nvhpc/24.11module available on Perlmutter with the same TU.Related