Replies: 1 comment 2 replies
-
So, it turns out that, despite the documentation recommending I am posting my full cmake configuration line below, as a record and for others who might struggle with it this issue at some point.
With this, I managed to get a successful compilation. Almost. I get errors like this:
which are solved by this commit from @wcwitt on a different branch May I suggest that it be backported to the |
Beta Was this translation helpful? Give feedback.
-
I get a weird error when I try to build MACE's version of LAMMPS (from the mace branch at https://github.com/ACEsuit/lammps) per the instructions. I have built it previously on several platforms, but this time on AMD GPUs using HIP I get stuck.
The command line I use is the following:
cmake ../cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/lus/work/CT8/cpt7069/fxcoudert/lammps-mace-2024.11.10 -D CMAKE_CXX_STANDARD=17 -D CMAKE_CXX_STANDARD_REQUIRED=ON -D BUILD_MPI=ON -D BUILD_SHARED_LIBS=ON -D PKG_KOKKOS=ON -D Kokkos_ENABLE_HIP=ON -D Kokkos_ARCH_AMD_GFX90A=ON -DKokkos_ENABLE_OPENMP=ON -D BUILD_OMP=ON -D PKG_ML-MACE=ON -D CMAKE_PREFIX_PATH=/opt/software/gaia-external/IA/torch/2.3.0/lib/python3.11/site-packages/torch/share/cmake
So it defines
-D Kokkos_ENABLE_HIP=ON -D Kokkos_ARCH_AMD_GFX90A=ON -DKokkos_ENABLE_OPENMP=ON
, as I think it should. But then Kokkos complains that no AMD GPU is specified:However, it has identified and accepted my options, because it also says:
I'm really wondering what I am doing wrong. Full output is available there: https://gist.github.com/fxcoudert/3635e35eb1cbe84a9825397d39636b2b
Anyone has any idea how to fix this or debug further? That would be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions