I cloned the most recent develop branch of the LAMMPS github repo and I attempted to build and install it using a fresh miniconda env with the following cmake setup
cmake ../cmake \
-C ../cmake/presets/most.cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=$(pwd) \
-D BUILD_MPI=ON \
-D PKG_VORONOI=NO \
-D PKG_ML-IAP=ON \
-D PKG_ML-SNAP=ON \
-D MLIAP_ENABLE_PYTHON=ON \
-D PKG_GPU=cuda \
-D PKG_PYTHON=ON \
-D BUILD_SHARED_LIBS=ON \
-D PKG_KOKKOS=yes \
-D GPU_ARCH=sm_86 \
-D Kokkos_ARCH_AMPERE86=yes \
-D CMAKE_C_COMPILER="$CC" \
-D CMAKE_CXX_COMPILER="$CXX"
Building goes fine; however, during linking I am getting what seems to be a conflict in source code definitions
/home/dma/miniconda3/envs/lammps-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/12.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: CMakeFiles/lammps.dir/cython/mliap_unified_couple.cpp.o: in function `__pyx_CommonTypesMetaclass_get_module(_object*, void*)':
mliap_unified_couple.cpp:(.text._Z37__pyx_CommonTypesMetaclass_get_moduleP7_objectPv+0x0): multiple definition of `__pyx_CommonTypesMetaclass_get_module(_object*, void*)'; CMakeFiles/lammps.dir/cython/mliap_model_python_couple.cpp.o:mliap_model_python_couple.cpp:(.text._Z37__pyx_CommonTypesMetaclass_get_moduleP7_objectPv+0x0): first defined here
/home/dma/miniconda3/envs/lammps-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/12.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: CMakeFiles/lammps.dir/cython/mliap_model_python_couple_kokkos.cpp.o: in function `__pyx_CommonTypesMetaclass_get_module(_object*, void*)':
mliap_model_python_couple_kokkos.cpp:(.text._Z37__pyx_CommonTypesMetaclass_get_moduleP7_objectPv+0x0): multiple definition of `__pyx_CommonTypesMetaclass_get_module(_object*, void*)'; CMakeFiles/lammps.dir/cython/mliap_model_python_couple.cpp.o:mliap_model_python_couple.cpp:(.text._Z37__pyx_CommonTypesMetaclass_get_moduleP7_objectPv+0x0): first defined here
/home/dma/miniconda3/envs/lammps-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/12.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: CMakeFiles/lammps.dir/cython/mliap_unified_couple_kokkos.cpp.o: in function `__pyx_CommonTypesMetaclass_get_module(_object*, void*)':
mliap_unified_couple_kokkos.cpp:(.text._Z37__pyx_CommonTypesMetaclass_get_moduleP7_objectPv+0x0): multiple definition of `__pyx_CommonTypesMetaclass_get_module(_object*, void*)'; CMakeFiles/lammps.dir/cython/mliap_model_python_couple.cpp.o:mliap_model_python_couple.cpp:(.text._Z37__pyx_CommonTypesMetaclass_get_moduleP7_objectPv+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/lammps.dir/build.make:27126: liblammps.so.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:550: CMakeFiles/lammps.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I am typically pretty good with lammps but the quirks of the ML-IAP unified interface has me needing assistance. Axel (or Nick) if you are out there, I would very much appreciate the help. It might be relevant to also mention I am using Cython version 3.1.2, python 3.11, and the GPUs are A6000s.