Dear all
I am using lammps on CENTOS 7.5 workstation with 2 processors Intel Xeon Gold 6238R 28 cores each. For KOKKOS I guess it is SKL architecture
I succesfully installed the lammps 29Oct21 version on such workstation using the following command:
cmake -C…/cmake/presets/gcc.cmake -C …/cmake/presets/most.cmake -C …/cmake/presets/kokkos-openmp.cmake -D OpenMP_gomp_LIBRARY=$HOME/opt/gcc-11.1.0/lib64/libgomp.so -D KOKKOS=yes -D Kokkos_ARCH_SKX=yes -D Kokkos_ENABLE_OPENMP=yes -D BUILD_OMP=yes …/cmake
This ran also finely when running it for builing 23Jun2022 stable release.
But when proceeding to next step “cmake --build .”
I got the following error message:
[ 90%] Building Fortran object CMakeFiles/linalg.dir/home/pascal/lammps-23Jun2022/lib/linalg/dasum.f.o
[ 90%] Building Fortran object CMakeFiles/linalg.dir/home/pascal/lammps-23Jun2022/lib/linalg/daxpy.f.o
[ 90%] Building Fortran object CMakeFiles/linalg.dir/home/pascal/lammps-23Jun2022/lib/linalg/dbdsqr.f.o
[ 90%] Building Fortran object CMakeFiles/linalg.dir/home/pascal/lammps-23Jun2022/lib/linalg/dcabs1.f.o
/home/pascal/lammps-23Jun2022/lib/linalg/dcabs1.f:56:17:
56 | COMPLEX16 Z
| 1
Error: GNU Extension: Nonstandard type declaration COMPLEX16 at (1)
/home/pascal/lammps-23Jun2022/lib/linalg/dcabs1.f:62:30:
62 | INTRINSIC ABS,DBLE,DIMAG
| 1
Error: The intrinsic ‘dimag’ declared INTRINSIC at (1) is not available in the current standard settings but a GNU Fortran extension. Use an appropriate ‘-std=*’ option or enable ‘-fall-intrinsics’ in order to use it.
/home/pascal/lammps-23Jun2022/lib/linalg/dcabs1.f:64:40:
64 | DCABS1 = ABS(DBLE(Z)) + ABS(DIMAG(Z))
| 1
Error: In call to ‘dimag’ at (1), type mismatch in argument ‘z’; pass ‘REAL(4)’ to ‘COMPLEX(8)’
/home/pascal/lammps-23Jun2022/lib/linalg/dcabs1.f:64:34:
64 | DCABS1 = ABS(DBLE(Z)) + ABS(DIMAG(Z))
| 1
Error: Function ‘dimag’ at (1) is INTRINSIC but is not compatible with an intrinsic
gmake[2]: *** [CMakeFiles/linalg.dir/home/pascal/lammps-23Jun2022/lib/linalg/dcabs1.f.o] Error 1
gmake[1]: *** [CMakeFiles/linalg.dir/all] Error 2
gmake: *** [all] Error 2
[pascal@gremi27 build]$
gcc --version gives: gcc (GCC) 11.1.0
gfortran --version gives: GNU Fortran (GCC) 11.1.0
I do not know how to solve this issue ?
Thanks a lot for your help
kind regards
Pascal