Skip to content

Commit 6c3e742

Browse files
committed
the dev container works with mpi
1 parent 62ad992 commit 6c3e742

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

containers/dev-container.def

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ From: ubuntu:22.04
55
Author Borja Castellano
66
Version 0.1.0
77

8+
%environment
9+
export PATH=/root/.cargo/bin:$PATH
10+
811
%post
912
apt update
1013
apt install -y \
1114
curl \
1215
git \
16+
libopenmpi-dev \
17+
openmpi-bin \
1318
build-essential \
1419
cmake \
1520
gfortran
1621

1722
curl https://sh.rustup.rs -sSf | sh -s -- -y
1823

19-
apt install -y libopenmpi-dev openmpi-bin
24+
echo 'export PATH=/root/.cargo/bin:$PATH' >> /environment
25+
echo 'export PATH=/root/.cargo/bin:$PATH' >> /root/.bashrc

0 commit comments

Comments
 (0)