MPI and Containers

319 views
Skip to first unread message

Ansgar Esztermann-Kirchner

unread,
Apr 5, 2023, 10:10:40 AM4/5/23
to cp...@googlegroups.com
Hello List,

I have successfully built 2023.1 from the dockerfile that's included
with the source code. I have converted the container to singularity
and run that on our cluster.

Now, I'd like to use cp2k with MPI. I've followed the "hybrid"
approach where srun starts multiple containers on multiple nodes, and
the MPI inside the container works with the MPI on the hosts (and PMI,
and Slurm) to start up the application:
srun -vv --ntasks 2 /apps/local/cp2k/2022.2/cp2k.sif cp2k.psmp \
-i H2O-64.inp -o cp2k_002.out

However, this does not seem to work:

GLOBAL| MPI I/O enabled T
GLOBAL| Total number of message passing processes 1
GLOBAL| Number of threads for this process 32
GLOBAL| This output is from process 0

I have also included a simple test program inside the same container,
and this seems to work (although there's an error message):

> --------------------------------------------------------------------------
> A requested component was not found, or was unable to be opened. This
> means that this component is either not installed or is unable to be
> used on your system (e.g., sometimes this means that shared libraries
> that the component requires are unable to be found/loaded). Note that
> PMIx stopped checking at the first component that it did not find.
>
> Host: node77-62
> Framework: psec
> Component: munge
> --------------------------------------------------------------------------
>
> [node77-62:2545390] PMIX ERROR: ERROR in file
> ../../../../../../src/mca/gds/ds12/gds_ds12_lock_pthread.c at line 169
> Hello, I am rank 0/2
> Hello, I am rank 1/2


How would I go about debugging the MPI startup of cp2k?
Of course, any other ideas are welcome, too.

Thanks,

A.
--
Ansgar Esztermann
Sysadmin Dep. Theoretical and Computational Biophysics
https://www.mpinat.mpg.de/person/11315/3883774

Krack Matthias

unread,
Apr 5, 2023, 12:35:11 PM4/5/23
to cp...@googlegroups.com

Hi

 

I have just checked in a README file for CP2K & Apptainer which might give some hints.

 

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.

 

Ansgar Esztermann-Kirchner

unread,
Apr 6, 2023, 4:30:38 AM4/6/23
to cp...@googlegroups.com
On Wed, Apr 05, 2023 at 04:35:00PM +0000, Krack Matthias wrote:
> Hi
>
> I have just checked in a README file<https://github.com/mkrack/cp2k/blob/master/tools/apptainer/README.md> for CP2K & Apptainer which might give some hints.

Thanks, I will check that document.

Best,

Weihong Xu (link89)

unread,
May 21, 2025, 3:27:47 AM5/21/25
to cp2k
The official docker build doesn't take cross nodes mpi run into account. The following lib is missing in the image:

apt-get install -qq --no-install-recommends \
    libmunge-dev \
    libucx-dev libucx0 ucx-utils \
    libibverbs1 libibverbs-dev \
    librdmacm1 librdmacm-dev \
    rdma-core libmlx5-1

Note that it may not be the same for different cluster, you may just take it as a reference.
Reply all
Reply to author
Forward
0 new messages