GEOS
GEOS copied to clipboard
[Bug] Compilation fails with NVHPC 22.07 on Pangea3
Describe the bug On pangea3, using NVHPC, after fixing some issues, I still get an error I can't solve building geosx. The same error occurs in RAJA examples but I disabled the build of these examples to go on.
[ 0%] Building CUDA object coreComponents/common/CMakeFiles/common.dir/BufferAllocator.cpp.o
nvcc-Warning-You are using a legacy version of NVCC with the NVC++ host compiler. In case of any incompatibilities, please upgrade to the latest CUDA toolchain included in this HPC SDK.
NVC++-S-0155-threadprivate class variables require constructors (/tmp/tmpxft_001fb3f3_00000000-6_BufferAllocator.cudafe1.stub.c: 12)
To Reproduce Steps to reproduce the behavior:
- Go on Pangea3
- load these modules 1) power-gzip/0.63 2) MTG/3.6 3) cmake/3.21.4 4) DIVA/prod 5) pyDIVA/env 6) qt/5.15.2 7) nvhpc/22.07 8) smpi/10.4.0.4 9) fftw3/3.3.10 10) openblas/0.3.18 (actually imports cuda 11.7)
- Build TPL and try to build GEOSX
- Build of GEOSX fails
Expected behavior Builds succeed and simple execution runs.
Platform (please complete the following information):
- Machine Pangea3
- Compiler: NVHPC 22.07
- GEOSX Version develop
Do you have more information about the concerned variable and context?
No there is only this line and the tmp file is gone... I'll rebuild in verbose mode to see if I can get more.
Here is the command line that fails :
cd /work206/workrd/SCR/NUM/xavier/p3/geosx/build-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/coreComponents/common && /data_local/sw/nvhpc/22.07/Linux_ppc64le/22.7/compilers/bin/nvcc -forward-unknown-to-host-compiler -ccbin=nvc++ -DCAMP_HAVE_CUDA -DFMT_LOCALE -DNDEBUG -I/work206/workrd/SCR/NUM/xavier/p3/geosx/build-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/include -I/appli_RD/LACOSTE/GEOSX/GEOSX2/src/coreComponents -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/raja/include -isystem=/data_local/sw/nvhpc/22.07/Linux_ppc64le/22.7/cuda/11.0/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/chai/include -isystem=/data_local/sw/nvhpc/22.07/Linux_ppc64le/22.7/cuda/11.7/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/caliper/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/pugixml/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/conduit/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/conduit/include/conduit -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/hdf5/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/fmt/include -isystem=/data_local/sw/spectrum_mpi/10.4.0.04rtp5-rh8_20211101/include -isystem=/workrd/SCR/NUM/xavier/p3/tpl/install-pangea3-nvhpc22.07-smpi10.4.0.4-relwithdebinfo/adiak/include -restrict -arch sm_70 --expt-extended-lambda -Werror cross-execution-space-call,reorder,deprecated-declarations -Xcompiler -std=c++14 -g -lineinfo -O3 -DNDEBUG -Xcompiler -DNDEBUG -Xcompiler -O3 --generate-code=arch=compute_70,code=[compute_70,sm_70] -Xcompiler=-fPIC -Xcompiler=-mp -Xcompiler=-pthread -std=c++14 -MD -MT coreComponents/common/CMakeFiles/common.dir/BufferAllocator.cpp.o -MF CMakeFiles/common.dir/BufferAllocator.cpp.o.d -x cu -c /appli_RD/LACOSTE/GEOSX/GEOSX2/src/coreComponents/common/BufferAllocator.cpp -o CMakeFiles/common.dir/BufferAllocator.cpp.o
@XL64 Is this fixed in a more recent version of the compiler?