QMCPACK / QMCPACK/qmcpack

qmcpack-3.17.1/src/AFQMC/Walkers/WalkerSetBase.h(51): error: incomplete type is not allowed

Open
#5,041 4 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
C++
Stars
403
Forks
154
Avg merge
1d 13h
Merged PRs (30d)
90

Description

**Describe the bug**
Cannot compile QMCPACK v3.17.1 using Intel's compiler suite

**To Reproduce**
1. Fetch vanilla version [3.17.1](https://github.com/QMCPACK/qmcpack/archive/refs/tags/v3.17.1.tar.gz)
2. cmake -DQMC_COMPLEX=1 -DBUILD_AFQMC=ON -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc
3. make

**Error message**
```
qmcpack-3.17.1/src/AFQMC/Walkers/WalkerSetBase.h(51): error: incomplete type is not allowed
inline static const TimerNameList_t WalkerSetBaseTimerNames =
^
detected during:
instantiation of class "qmcplusplus::afqmc::WalkerSetBase [with Alloc=qmcplusplus::afqmc::shared_allocator, Ptr=qmcplusplus::afqmc::ComplexType *]" at line 107
instantiation of "qmcplusplus::afqmc::WalkerSetBase::WalkerSetBase(qmcplusplus::afqmc::TaskGroup_ &, xmlNodePtr, qmcplusplus::afqmc::AFQMCInfo &, qmcplusplus::RandomBase &, qmcplusplus::afqmc::WalkerSetBase::Allocator, qmcplusplus::afqmc::WalkerSetBase::BPAllocator) [with Alloc=qmcplusplus::afqmc::shared_allocator, Ptr=qmcplusplus::afqmc::ComplexType *]" at line 47 of
"qmcpack-3.17.1/src/AFQMC/Walkers/SharedWalkerSet.hpp"

qmcpack-3.17.1/src/AFQMC/Walkers/WalkerSetBase.h(51): error: incomplete type is not allowed
inline static const TimerNameList_t WalkerSetBaseTimerNames =
^
detected during:
instantiation of class "qmcplusplus::afqmc::WalkerSetBase [with Alloc=qmcplusplus::afqmc::device_allocator, Ptr=qmcplusplus::afqmc::device_ptr]" at line 107
instantiation of "qmcplusplus::afqmc::WalkerSetBase::WalkerSetBase(qmcplusplus::afqmc::TaskGroup_ &, xmlNodePtr, qmcplusplus::afqmc::AFQMCInfo &, qmcplusplus::RandomBase &, qmcplusplus::afqmc::WalkerSetBase::Allocator, qmcplusplus::afqmc::WalkerSetBase::BPAllocator) [with Alloc=qmcplusplus::afqmc::device_allocator, Ptr=qmcplusplus::afqmc::device_ptr]" at line 48 of
"qmcpack-3.17.1/src/AFQMC/Walkers/SerialWalkerSet.hpp"
```

**System:**
- modules loaded:
GCC = "11.3.0",
GCCcore = "11.3.0",
binutils = ".2.38",
["buildenv-intel"] = "2023a-eb",
["buildtool-easybuild"] = "4.8.0-hpce082752a2",
hpc = ".1.9.5",
imkl = ".2023.1.0",
["imkl-FFTW"] = "2023.1.0",
impi = ".2021.9.0",
intel = "2023a",
["intel-compilers"] = "2023.1.0",
libxml2 = "2.10.4-hpc1",
["netCDF-HDF5"] = "4.9.2-1.12.2-hpc1",
zlib = ".1.2.12",

- other systems where this is reproducible: I managed to reproduce the problem on two HPC clusters.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the provided CMake command and Intel compiler suite. Start at src/AFQMC/Walkers/WalkerSetBase.h:51, then trace the instantiations through SharedWalkerSet.hpp and SerialWalkerSet.hpp. Done means QMCPACK v3.17.1 compiles with BUILD_AFQMC and QMC_COMPLEX enabled on the reported Intel environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, compilers, hpc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.