Update to support CUDA 11.4
[alexxy/gromacs.git] / admin / containers / buildall.sh
1 #!/bin/bash
2
3 set -ev
4
5 SCRIPT=$PWD/scripted_gmx_docker_builds.py
6
7 # Note: All official GROMACS CI images are built
8 # with openmpi on. That reduces the total number of
9 # images needed, because the same one can test library,
10 # thread and no MPI configurations.
11
12 args[${#args[@]}]="--gcc 11 --clfft --mpi openmpi --rocm"
13 args[${#args[@]}]="--gcc 10 --cuda 11.4.0 --clfft --mpi openmpi"
14 args[${#args[@]}]="--gcc 7 --cuda 11.0 --clfft --mpi openmpi"
15 args[${#args[@]}]="--llvm 11 --tsan"
16 args[${#args[@]}]="--llvm 8 --cuda 11.0 --clfft --mpi openmpi"
17 args[${#args[@]}]="--llvm 12 --clfft --mpi openmpi --rocm"
18 args[${#args[@]}]="--oneapi 2021.1.1"
19 args[${#args[@]}]="--oneapi 2021.2.0 --intel-compute-runtime 21.21.19914"
20 args[${#args[@]}]="--llvm --doxygen --mpi openmpi --venvs 3.7.7"
21 args[${#args[@]}]="--llvm 11 --cuda 11.4.0 --hipsycl 0bf6420aab18 --rocm 4.2"
22
23 echo "Building the following images."
24 for arg_string in "${args[@]}"; do
25   # shellcheck disable=SC2086
26   python3 -m utility $arg_string
27 done
28 echo
29
30 for arg_string in "${args[@]}"; do
31   # shellcheck disable=SC2086
32   tag=$(python3 -m utility $arg_string)
33   tags[${#tags[@]}]=$tag
34   # shellcheck disable=SC2086
35   python3 $SCRIPT $arg_string | docker build -t $tag -
36 done
37
38 echo "Run the following to upload the updated images."
39 echo "docker login registry.gitlab.com -u <token name> -p <hash>"
40 for tag in "${tags[@]}"; do
41   echo "docker push $tag"
42 done