Speed comparation: the new versions of cp2k are slower than the old
237 views
Skip to first unread message
Assigned to lilin...@gmail.com by me
li lincai
unread,
Feb 25, 2025, 1:28:34 AM2/25/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
Dear cp2k developers:
I found that the new versions of CP2K are slower than the old ones. I installed CP2K-2023.1, 2023.2, and 2025.1 on my computer. CP2K-2025.1 is much slower than CP2K-2023.1 when running the same task.
My computer's CPU is EPYC-7V12, and my system is Rocky linux 9.2. I tested at least two systems; one is Pt-water system ( about 300 atoms), and another is the ionic liquid system (about 500 atoms, including C H O F S N), the results are same that CP2K-2025.1 is much slower than CP2K-2023.1. For example, CP2K-2025.1 need 2.7 s while CP2K-2023.1. just need 1.9 s for one SCF step. I compiled CP2K with GCC 11 and MKL math library. Do these default parameters has improved their accuracy, or I wrongly compiled my CP2K?
Jürg Hutter
unread,
Feb 26, 2025, 4:46:05 AM2/26/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp...@googlegroups.com
Hi
Can you have a look at the detailed timings at the end of your test jobs?
Do you see a specific routine causing the slow down or are all parts running slower?
If you post that information we can have a deeper look?
regards
JH
________________________________________
From: cp...@googlegroups.com <cp...@googlegroups.com> on behalf of li lincai <lilin...@gmail.com>
Sent: Tuesday, February 25, 2025 2:54 AM
To: cp2k
Subject: [CP2K:21204] Speed comparation: the new versions of cp2k are slower than the old
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
I have tested a Pt-IL (ionic liquid) system on my workstation, and the input and log file are attached as below: Is is obvious that cp2k2025.1 is slower than cp2k2023.1.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp...@googlegroups.com
Hi
Yes, it is obvious, but why? Can you run the same job with both versions
such that the jobs finish correctly? Then there will be detailed timing
outputs that will give the necessary information to see what is going on.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
I have tested two systems; one has atoms, and the other has 744 atoms. The two tasks ended normally, and their log information and input files are attached. Thanks for cp2k developers' answers.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp...@googlegroups.com
Hi
thank you for the outputs.
It looks to me that the main part of the difference comes from MPI library calls.
Check the timings for "mp_alltoall_z22v".
Can you check what MPI is used for the different versions of CP2K?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
Hi
Thanks for your message!
Both CP2K versions are installed by toolchain. OpenMPI 4.14 for CP2K23.1 and OpenMPI 5.06 for CP2K25.1.
To manage multiple versions of CP2K, each version is separated in the .bashrc file to avoid messes. So, I can promise that the OpenMPI versions and CP2K versions are strictly corresponded.
regards
LCL
li lincai
unread,
Jun 3, 2025, 3:29:45 AM6/3/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
I tried to compile CP2K2025.1 with OpenMPI 4.14, and it solved this problem. Maybe my computer is not very compatible with the high versions of OpenMPI.