Axel,
Thanks for responding!
So this is what I followed your advice and did the following. First, here is my setup:
I am using:
OS: Windows 10 Windows Subsystem Linux Ubuntu 18.04.4 LTS
System: AMD Ryzen 5 1600, 16 GB RAM, 64-bit OS
CMake: CMake version 3.10.2
What I Tried:
1. Clean & Purge Directories
Grab directory for src
LDir= /home/ernyb/lammps/src
Delete any old stuff to start new in the above src directory
make no-all purge
Move to main lammps director: /home/ernyb/lammpsand delete previous build folder, make new build folder, and enter build folder:
rm -r build
mkdir build
cd build
2. Configure:
cmake -C …/cmake/preset/minimal.cmake -D PKG_MISC=on …/cmake
Output:
loading initial cache file …/cmake/preset/minimal.cmake
CMake Error: Error processing file: …/cmake/preset/minimal.cmake
– The CXX compiler identification is GNU 7.5.0
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found Git: /usr/bin/git (found version “2.17.1”)
– Running check for auto-generated files from make-based build system
– Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version “3.1”)
– Found MPI: TRUE (found version “3.1”)
– Looking for C++ include omp.h
– Looking for C++ include omp.h - found
– Found OpenMP_CXX: -fopenmp (found version “4.5”)
– Found OpenMP: TRUE (found version “4.5”)
– Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version “1.6.34”)
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version “1.2.11”)
– Found GZIP: /bin/gzip
– Could NOT find FFMPEG (missing: FFMPEG_EXECUTABLE)
– Performing Test COMPILER_SUPPORTS-ffast-math
– Performing Test COMPILER_SUPPORTS-ffast-math - Success
– Performing Test COMPILER_SUPPORTS-march=native
– Performing Test COMPILER_SUPPORTS-march=native - Success
– Looking for C++ include cmath
– Looking for C++ include cmath - found
– Generating style_angle.h…
– Generating style_atom.h…
– Generating style_body.h…
– Generating style_bond.h…
– Generating style_command.h…
– Generating style_compute.h…
– Generating style_dihedral.h…
– Generating style_dump.h…
– Generating style_fix.h…
– Generating style_improper.h…
– Generating style_integrate.h…
– Generating style_kspace.h…
– Generating style_minimize.h…
– Generating style_nbin.h…
– Generating style_npair.h…
– Generating style_nstencil.h…
– Generating style_ntopo.h…
– Generating style_pair.h…
– Generating style_reader.h…
– Generating style_region.h…
– Generating packages_angle.h…
– Generating packages_atom.h…
– Generating packages_body.h…
– Generating packages_bond.h…
– Generating packages_command.h…
– Generating packages_compute.h…
– Generating packages_dihedral.h…
– Generating packages_dump.h…
– Generating packages_fix.h…
– Generating packages_improper.h…
– Generating packages_integrate.h…
– Generating packages_kspace.h…
– Generating packages_minimize.h…
– Generating packages_nbin.h…
– Generating packages_npair.h…
– Generating packages_nstencil.h…
– Generating packages_ntopo.h…
– Generating packages_pair.h…
– Generating packages_reader.h…
– Generating packages_region.h…
– Generating lmpinstalledpkgs.h…
– Building package: MISC
– The following tools and libraries have been found and configured:
- Git
- MPI
- OpenMP
- JPEG
- PNG
- ZLIB
– <<< Build configuration >>>
Build type: RelWithDebInfo
Install path: /home/ernyb/.local
Generator: Unix Makefiles using /usr/bin/make
– <<< Compilers and Flags: >>>
– C++ Compiler: /usr/bin/c++
Type: GNU
Version: 7.5.0
C++ Flags: -O2 -g -DNDEBUG
Defines: LAMMPS_SMALLBIG;LAMMPS_MEMALIGN=64;LAMMPS_OMP_COMPAT=3;LAMMPS_JPEG;LAMMPS_PNG;LAMMPS_GZIP
Options: -ffast-math;-march=native
– <<< Linker flags: >>>
– Executable name: lmp
– Static library flags:
– <<< MPI flags >>>
– MPI includes: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi;/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent;/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include;/usr/lib/x86_64-linux-gnu/openmpi/include
– MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;
– Configuring incomplete, errors occurred!
See also “/home/ernyb/lammps/build/CMakeFiles/CMakeOutput.log”.
At this point I do not see anything indicating MANYBODY was enabled or added. There is an error for FFMPEG that it could not find its executible. I am guessing I should just install it from here:
https://ffmpeg.org/download.html
Next: try to Build.
Try to build but won’t let me unless i configure the following:cmake …/cmake
which Outputs:
– Running check for auto-generated files from make-based build system
– Found OpenMP_CXX: -fopenmp
– Found OpenMP: TRUE
– Could NOT find FFMPEG (missing: FFMPEG_EXECUTABLE)
– Performing Test COMPILER_SUPPORTS-march=native
– Performing Test COMPILER_SUPPORTS-march=native - Success
– Generating style_angle.h…
– Generating style_atom.h…
– Generating style_body.h…
– Generating style_bond.h…
– Generating style_command.h…
– Generating style_compute.h…
– Generating style_dihedral.h…
– Generating style_dump.h…
– Generating style_fix.h…
– Generating style_improper.h…
– Generating style_integrate.h…
– Generating style_kspace.h…
– Generating style_minimize.h…
– Generating style_nbin.h…
– Generating style_npair.h…
– Generating style_nstencil.h…
– Generating style_ntopo.h…
– Generating style_pair.h…
– Generating style_reader.h…
– Generating style_region.h…
– Generating packages_angle.h…
– Generating packages_atom.h…
– Generating packages_body.h…
– Generating packages_bond.h…
– Generating packages_command.h…
– Generating packages_compute.h…
– Generating packages_dihedral.h…
– Generating packages_dump.h…
– Generating packages_fix.h…
– Generating packages_improper.h…
– Generating packages_integrate.h…
– Generating packages_kspace.h…
– Generating packages_minimize.h…
– Generating packages_nbin.h…
– Generating packages_npair.h…
– Generating packages_nstencil.h…
– Generating packages_ntopo.h…
– Generating packages_pair.h…
– Generating packages_reader.h…
– Generating packages_region.h…
– Generating lmpinstalledpkgs.h…
– Building package: MISC
– The following tools and libraries have been found and configured:
- Git
- MPI
- OpenMP
- JPEG
- PNG
- ZLIB
– <<< Build configuration >>>
Build type: RelWithDebInfo
Install path: /home/ernyb/.local
Generator: Unix Makefiles using /usr/bin/make
– <<< Compilers and Flags: >>>
– C++ Compiler: /usr/bin/c++
Type: GNU
Version: 7.5.0
C++ Flags: -O2 -g -DNDEBUG
Defines: LAMMPS_SMALLBIG;LAMMPS_MEMALIGN=64;LAMMPS_OMP_COMPAT=3;LAMMPS_JPEG;LAMMPS_PNG;LAMMPS_GZIP
Options: -ffast-math;-march=native
– <<< Linker flags: >>>
– Executable name: lmp
– Static library flags:
– <<< MPI flags >>>
– MPI includes: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi;/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent;/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include;/usr/lib/x86_64-linux-gnu/openmpi/include
– MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;
– Configuring done
– Generating done
– Build files have been written to: /home/ernyb/lammps/build
3. Build:
Next, I build it using:
cmake --build .
I have attached the output as a separate file to this email.
4. Navigate to Tutorial Directory
~/lammps/build$ cd …/
~/lammps$ cd examples/MSstateTutorials/Tutorial1
~/lammps/examples/MSstateTutorials/Tutorial1$ ls
Output
Al99.eam.alloy calc_fcc.in log.lammps
5. Run LAMMPS
I run the code as given in the manual:mpirun -np 4 $LDir/lmp_mpi -in calc_fcc.in
Output:
LAMMPS (15 Apr 2020)
Lattice spacing in x,y,z = 4 4 4
Created orthogonal box = (0 0 0) to (4 4 4)
1 by 2 by 2 MPI processor grid
Lattice spacing in x,y,z = 4 4 4
Created 4 atoms
create_atoms CPU = 0.0009034 secs
Replicating atoms …
orthogonal box = (0 0 0) to (4 4 4)
1 by 2 by 2 MPI processor grid
4 atoms
replicate CPU = 0.0011949 secs
ERROR: Unrecognized pair style ‘eam/alloy’ is part of the MANYBODY package which is not enabled in this LAMMPS binary. (…/force.cpp:285)
Last command: pair_style eam/alloy
BuildOutput.txt (41.4 KB)
CMakeOutput.log (52.7 KB)