GithubHelp home page GithubHelp logo

Comments (2)

giovtorres avatar giovtorres commented on July 17, 2024

Hi @psteinb, sorry, I missed this message. Installing packages are the same. Just attach to the container and run yum install openmpi{,-devel}. Now, regarding testing and running MPI applications, I haven't tried to run any MPI workloads inside docker. I did a quick test (mpirun hostname) and I get the ORTE has lost communication with its daemon located on node: error message.

I had to make a few changes:

  • change MaxNodes=5 in slurm.conf and run scontrol reconfigure
  • add 127.0.0.1 c1 in /etc/hosts (repeat for c2 thru c5)
  • run docker with --net=host --ipc=host --privileged (I'm not sure which is actually mandatory since all nodes are technically on the same host)

If i do all those things, then compile the ring_c.c example with mpicc in the examples directory, I get something:

[root@ernie ~]# salloc -N5
...
[root@ernie ~]# /usr/lib64/openmpi/bin/mpirun --allow-run-as-root ring_c
Process 0 sending 10 to 1, tag 201 (5 processes in ring)
Process 0 sent to 1
Process 0 decremented value: 9
Process 0 decremented value: 8
Process 0 decremented value: 7
Process 0 decremented value: 6
Process 0 decremented value: 5
Process 0 decremented value: 4
Process 0 decremented value: 3
Process 0 decremented value: 2
Process 0 decremented value: 1
Process 0 decremented value: 0
Process 0 exiting
Process 1 exiting
Process 2 exiting
Process 3 exiting
Process 4 exiting

Hope that helps.

Giovanni

from docker-centos7-slurm.

psteinb avatar psteinb commented on July 17, 2024

from docker-centos7-slurm.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.