Hi Ava
Do you run the “srun” command as part of a SLURM batch job file with a #SBATCH header section or interactively?
Your guess is right, the –ntasks flag defines the number of MPI ranks.
Best
Matthias
--
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 on the web visit
https://groups.google.com/d/msgid/cp2k/2393b350-7de0-4599-97e0-4f52ffec0c5en%40googlegroups.com.
Hi Ava
Thanks for testing. Indeed, the .sif file does not seem to work with the host MPI properly. These .sif files were directly built with apptainer. This was a test and we will not provide such containers in the future any longer. Instead, I suggest the download of a cp2k production docker container. Could you test such a docker container with apptainer? You can download it with the command
apptainer pull docker://mkrack/cp2k:2023.2_mpich_generic_psmp
or
apptainer pull docker://mkrack/cp2k:2023.2_openmpi_generic_psmp
depending on your host MPI version.
A list of the available docker containers can be found here.
Best
Matthias
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/1a89bd22-860c-4922-a2b6-bd20232ca770n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cp2k/or6vb6En6aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827D6DA09823659200590A5F4D4A%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM.
So my guess would be that I should configure my version of OpenMPI to work with slurm?
Yes, your OpenMPI installation should be configured with PMI support (--with-pmi flag) to work with srun. That issue is not related to container, since both SLURM and OpenMPI are on the host side.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/CADBW8Us_6gVF8ABCEaUF%2B9VpK_84T8%3DNcU%2BLONq491L9DkwNVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/ZRAP278MB08274830D6F7F0D6F47075B0F4D4A%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM.