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