failure to compile CP2K/2025.2 with ACE potentials

27 views
Skip to first unread message

NUCP2K

unread,
Aug 23, 2025, 8:55:07 PM (13 days ago) Aug 23
to cp2k
Hi, CP2K developers, 

   I was trying to compile the newly released CP2K/2025.2 with -D__ACE, but got the error messages below:

      in function `__ace_wrapper_MOD_ace_model_release':

ace_wrapper.F90:(.text+0x4c0): undefined reference to `AcePotFinalize'


in function `__ace_wrapper_MOD_ace_model_compute':

ace_wrapper.F90:(.text+0x7dc): undefined reference to `AcePotCompute'


in function `__ace_wrapper_MOD_ace_model_initialize':

ace_wrapper.F90:(.text+0x584): undefined reference to `AcePotInitialize'


 I followed CP2K's instructions to install Lammps' ML-PACE interface, and I do not think ML-PACE has any subroutines named AcePotInitialize, AcePotCompute or AcePotFinalize.


  Any hints?

  

  Thanks.


Hanning 

Frederick Stein

unread,
Aug 25, 2025, 4:29:51 AM (12 days ago) Aug 25
to cp2k
Hi NUCP2K,
How are you compiling CP2K? What version of ACE are you using? Our wrapper is tested with lammps-user-pace-v.2023.11.25.fix2. The missing symbols belong to files in CP2K to provide a C-interface to ACE as Fortran cannot handle the C++-templates used in ACE.
Best,
Frederick

Hanning Chen

unread,
Aug 25, 2025, 1:19:49 PM (11 days ago) Aug 25
to cp...@googlegroups.com
Dear Frederick,

  I think I used a wrong version of ML-PACE. After I changed to lammps-user-pace-v.2023.11.25.fix2, it worked!

Thanks.

Hanning

--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/5e4690a3-1dff-443d-b818-f83e7f53aa26n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages