Skip to content
Snippets Groups Projects
Verified Commit f901bcfd authored by Darren Reed's avatar Darren Reed Committed by GitLab UZH
Browse files

Update container_info.md

parent d2faec26
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,11 @@ From: ubuntu:20.04
```
In addition to using a hybrid approach, the mpi_hello_world application is compiled as part of the "post" section of the .def file using the command "make". This required modifying the "files" section to include the source (.c) and the makefile.
The correspond slurm script:
Notice that Open MPI gets installed directly into the container. The files 'mpi_hello_world.c', 'makefile', and hellompi_hybrid.def need to be in the current working directory. Because of the sudo requirement, you would need to create the container on a ScienceCloud virtual machine (we have images with singularity pre-installed) or on your own machine. Then the command to build the container image is:
```
sudo singularity build mpi_hello_world_hybrid.sif mpi_hello_world_hybrid.def
```
You would then transfer the .sif image file to ScienceCluster. The executable within the image can be run with the following slurm script:
```
#!/bin/bash
#SBATCH --ntasks=4 ## number of MPI tasks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment