Jeff Hammond
Jeff Hammond
You should be able to reproduce with https://github.com/jeffhammond/HPCInfo/blob/master/buildscripts/llvm-git.sh to install flang-new and the simplest possible build using those compilers.
It crashes here when I run with `ctest`: ``` AdvectionDiffusion: AdvectionDiffusion: ------------------------------------- AdvectionDiffusion: Solving for species transport AdvectionDiffusion: ------------------------------------- AdvectionDiffusion: ------------------------------------- AdvectionDiffusion: Iteration step: 1 AdvectionDiffusion: ------------------------------------- AdvectionDiffusion: Bulk Assembly...
This is the backtrace (apparently autogenerated by the compiler): ``` ElmerSolver_mpi:852223 terminated with signal 11 at PC=714c22a95926 SP=7ffed3ebd0a0. Backtrace: /home/jehammond/ELMER/elmerfem/build/fem/src/libelmersolver.so(_QMmainutilsPsinglesolver+0x96)[0x714c22a95926] /home/jehammond/ELMER/elmerfem/build/fem/src/libelmersolver.so(_QMmainutilsPsolveractivate+0x19a2)[0x714c22a985c2] /home/jehammond/ELMER/elmerfem/build/fem/src/libelmersolver.so(+0x4850b7)[0x714c22a850b7] /home/jehammond/ELMER/elmerfem/build/fem/src/libelmersolver.so(_QMmainutilsPsolveequations+0xea1)[0x714c22a81ac1] /home/jehammond/ELMER/elmerfem/build/fem/src/libelmersolver.so(+0x7cc72a)[0x714c22dcc72a] /home/jehammond/ELMER/elmerfem/build/fem/src/libelmersolver.so(elmersolver_+0x3696)[0x714c22db4306] /home/jehammond/ELMER/elmerfem/build/fem/src/ElmerSolver_mpi(+0x144e)[0x5eeaa1a3044e] /home/jehammond/ELMER/elmerfem/build/fem/src/ElmerSolver_mpi(+0x160d)[0x5eeaa1a3060d] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x714c1dc29d90] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x714c1dc29e40] /home/jehammond/ELMER/elmerfem/build/fem/src/ElmerSolver_mpi(+0x1195)[0x5eeaa1a30195]...
``` jehammond@oppenheimer:~/ELMER/elmerfem/build/fem/tests/AdvDiffFluxes$ /home/jehammond/ELMER/elmerfem/build/fem/src/ElmerSolver ELMER SOLVER (v 9.0) STARTED AT: 2024/06/10 12:47:55 Authorization required, but no authorization protocol specified ParCommInit: Initialize #PEs: 1 MAIN: MAIN: ============================================================= MAIN: ElmerSolver finite element software,...
I forgot that you'll need a bit more than Flang. This is how I configured Elmer: ``` FCFLAGS="-I$HOME/vapaa/source" \ LDFLAGS="-L$HOME/vapaa/source -lmpi_f08" \ MPI_HOME=/opt/mpich/llvm \ FC=/opt/llvm/latest/bin/flang-new \ CC=/opt/llvm/latest/bin/clang \ CXX=/opt/llvm/latest/bin/clang++ CMAKE_INSTALL_PREFIX=$HOME/ELMER/install...
Okay, I have a proper debug output now... ``` jehammond@oppenheimer:~/ELMER/elmerfem/build/fem/tests/AdvDiffFluxes$ export ELMER_HOME=/home/jehammond/ELMER/install jehammond@oppenheimer:~/ELMER/elmerfem/build/fem/tests/AdvDiffFluxes$ ElmerSolver ELMER SOLVER (v 9.0) STARTED AT: 2024/06/10 13:35:56 Authorization required, but no authorization protocol specified ParCommInit:...
I don't remember if I solved this but since NVHPC C/C++ are ABI compatible with GCC, you can just build MPICH with GCC and link it with any NVHPC C/C++...
That's why I said use GCC for C and C++ only. You are correct that you have to use the same Fortran compiler. MPI_F08 is an interesting situation, apart from...
> *.mod files are not really header files, they are compiler-dependent and to the best of my knowledge they are not guaranteed to be even platform independent. Even though they...
Modules are use-included at compile-time, not link-time, and they belong in the include directory. Not everyone uses wrappers and not everyone uses cmake.