Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
c5bf6daf
Commit
c5bf6daf
authored
2 years ago
by
Guilherme Pantoja Calandrini de Azevedo Junior
Browse files
Options
Downloads
Patches
Plain Diff
Update singularity_recipe_hints.md
parent
eaa2fc32
No related branches found
No related tags found
2 merge requests
!820
Automated merge from preview to main
,
!802
Ubuntu+MPICH - Update singularity_recipe_hints.md
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/singularity_recipe_hints.md
+65
-0
65 additions, 0 deletions
...h.tu-dresden.de/docs/software/singularity_recipe_hints.md
with
65 additions
and
0 deletions
doc.zih.tu-dresden.de/docs/software/singularity_recipe_hints.md
+
65
−
0
View file @
c5bf6daf
...
@@ -58,6 +58,71 @@ EOF
...
@@ -58,6 +58,71 @@ EOF
./hello
./hello
```
```
### Distributed memory
#### MPICH
Ubuntu+MPICH definition file:
```
bash
Bootstrap: docker
From: ubuntu:20.04
%files
mpitest.c /opt
%environment
export
MPICH_DIR
=
/opt/mpich
export
SINGULARITY_MPICH_DIR
=
$MPICH_DIR
export
SINGULARITYENV_APPEND_PATH
=
$MPICH_DIR
/bin
export
SINGULAIRTYENV_APPEND_LD_LIBRARY_PATH
=
$MPICH_DIR
/lib
%post
echo
"Installing required packages..."
apt-get update
&&
apt-get
install
-y
wget git bash gcc gfortran g++ make file
# required for F90 bindings
apt-get
install
-y
python3
echo
"Installing MPICH"
export
MPICH_DIR
=
/opt/mpich
export
MPICH_VERSION
=
4.1
export
MPICH_URL
=
"https://www.mpich.org/static/downloads/
$MPICH_VERSION
/mpich-
$MPICH_VERSION
.tar.gz"
mkdir
-p
/tmp/mpich
mkdir
-p
/opt
# Download
cd
/tmp/mpich
&&
wget
-O
mpich-
$MPICH_VERSION
.tar.gz
$MPICH_URL
&&
tar
-xf
mpich-
$MPICH_VERSION
.tar.gz
# Configure and compile/install
cd
/tmp/mpich/mpich-
$MPICH_VERSION
./configure
--prefix
=
$MPICH_DIR
&&
make
install
cd
..
# Set env variables so we can compile our application
export
PATH
=
$MPICH_DIR
/bin:
$PATH
export
LD_LIBRARY_PATH
=
$MPICH_DIR
/lib:
$LD_LIBRARY_PATH
export
MANPATH
=
$MPICH_DIR
/share/man:
$MANPATH
echo
"Compiling the MPI application..."
cd
/opt
&&
mpicc
-o
mpitest mpitest.c
```
At your local machine:
```
console
whoami@localhost#
sudo
singularity build ubuntu_mpich.sif ubuntu_mpich.def
```
This will create the
`ubuntu_mpich.sif`
file that you have to copy to HPC system.
At the HPC system run as following:
```
console
marie@login$
srun
-n
4
--ntasks-per-node
2
--time
=
00:10:00 singularity
exec
ubuntu_mpich.sif /opt/mpitest
```
### CUDA + CuDNN + OpenMPI
### CUDA + CuDNN + OpenMPI
*
Chosen CUDA version depends on installed driver of host
*
Chosen CUDA version depends on installed driver of host
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment