File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
Bootstrap: docker
2
- From: ubuntu:24 .04
2
+ From: nvcr.io/nvidia/nvhpc:23.11-devel-cuda12.3-ubuntu22 .04
3
3
4
4
%environment
5
5
export OMPI_ALLOW_RUN_AS_ROOT=1
@@ -8,6 +8,9 @@ From: ubuntu:24.04
8
8
9
9
%post
10
10
export DEBIAN_FRONTEND=noninteractive
11
+ export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.11/compilers/bin:$PATH
12
+ export LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.11/compilers/lib:$LD_LIBRARY_PATH
13
+
11
14
apt update -y && apt install -y \
12
15
build-essential git tar wget make cmake gcc g++ \
13
16
python3 python3-dev python3-venv \
@@ -16,9 +19,16 @@ From: ubuntu:24.04
16
19
cd /opt
17
20
git clone --depth 1 https://github.com/mflowcode/mfc.git MFC
18
21
cd /opt/MFC
19
- ./mfc.sh build -j $(nproc)
22
+ rm -rf build
23
+ export CC=nvc
24
+ export CXX=nvc++
25
+ export FC=nvfortran
26
+ ./mfc.sh build --mpi --gpu -j $(nproc)
20
27
./mfc.sh test --dry-run -j $(nproc)
21
28
22
29
%runscript
30
+ mkdir -p /tmp/mfc/build
23
31
cd /opt/MFC
32
+ cp -r /opt/MFC /tmp/mfc/
33
+ cd /tmp/mfc/MFC
24
34
exec ./mfc.sh "$@"
You can’t perform that action at this time.
0 commit comments