Skip to content

Commit 3185e12

Browse files
committed
Docker: OpenMPI Root
Fix the root work-around (`export -f mpi...`) and include mpiexec as well.
1 parent 04d8a0c commit 3185e12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

share/picongpu/dockerfiles/ubuntu-1604/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ RUN /bin/echo -e "source $SPACK_ROOT/share/spack/setup-env.sh\n" \
6161
"spack load $PIC_PACKAGE\n" \
6262
'if [ $(id -u) -eq 0 ]; then\n' \
6363
' function mpirun { $(which mpirun) --allow-run-as-root $@; }\n' \
64-
'fi' \
64+
'fi\n' \
65+
'export -f mpirun\n' \
66+
'if [ $(id -u) -eq 0 ]; then\n' \
67+
' function mpiexec { $(which mpiexec) --allow-run-as-root $@; }\n' \
68+
'fi\n' \
69+
'export -f mpiexec\n' \
6570
> /etc/profile.d/picongpu.sh
6671

6772
# build example for out-of-the-box usage: LWFA

0 commit comments

Comments
 (0)