GEOS icon indicating copy to clipboard operation
GEOS copied to clipboard

[Bug] Compilation fails with NVHPC 22.07 on Pangea3

Open XL64 opened this issue 2 years ago • 3 comments

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:

  1. Go on Pangea3
  2. 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)
  3. Build TPL and try to build GEOSX
  4. 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

XL64 avatar Sep 30 '22 15:09 XL64

Do you have more information about the concerned variable and context?

TotoGaz avatar Sep 30 '22 15:09 TotoGaz

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.

XL64 avatar Sep 30 '22 19:09 XL64

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 avatar Sep 30 '22 19:09 XL64

@XL64 Is this fixed in a more recent version of the compiler?

TotoGaz avatar Feb 01 '23 01:02 TotoGaz