@@ -3,22 +3,25 @@ pwd=`pwd`
33build_arm_arch_images=$1
44
55export FEDML_VERSION=` cat python/setup.py | grep version= | awk -F' =' ' {print $2}' | awk -F' ,' ' {print $1}' | awk -F' "' ' {print $2}' `
6-
7- if [[ $build_arm_arch_images = " " ]]; then
6+ echo " version from setup.py: ${FEDML_VERSION} "
7+
8+ OS=" ubuntu20.04"
9+ DISTRO=" ubuntu2004"
10+ PYTHON_VERSION=" 3.8"
11+ PYTORCH_VERSION=" 1.13.1"
12+ NCCL_VERSION=" 2.11.4"
13+ CUDA_VERSION=" 11.6"
14+ LIB_NCCL=" 2.11.4-1+cuda11.6"
15+ NVIDIA_BASE_IMAGE=" nvidia/cuda:11.6.1-cudnn8-devel-ubuntu20.04"
16+ PYTORCH_EXTRA_INDEX_URL=" https://download.pytorch.org/whl/cu116"
17+ PYTORCH_GEOMETRIC_URL=" https://data.pyg.org/whl/torch-1.13.1+cu116.html"
18+
19+ if [ " $build_arm_arch_images " = " " ]; then
820 # Build X86_64 docker
921 ARCH=" x86_64"
10- OS=" ubuntu18.04"
11- DISTRO=" ubuntu1804"
12- PYTHON_VERSION=" 3.7"
13- PYTORCH_VERSION=" 1.12.1"
14- NCCL_VERSION=" 2.9.9"
15- CUDA_VERSION=" 11.3"
16- LIB_NCCL=" 2.9.9-1+cuda11.3"
17- OUTPUT_IMAGE=" fedml/fedml:latest-torch1.12.1-cuda11.3-cudnn8-devel"
18- NVIDIA_BASE_IMAGE=" nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04"
19- PYTORCH_EXTRA_INDEX_URL=" https://download.pytorch.org/whl/cu113"
20- PYTORCH_GEOMETRIC_URL=" https://data.pyg.org/whl/torch-1.12.0+cu113.html"
21- CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -torch1.12.1-cuda11.3-cudnn8-devel"
22+
23+ OUTPUT_IMAGE=" fedml/fedml:latest-torch1.13.1-cuda11.6-cudnn8-devel"
24+ CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -torch1.13.1-cuda11.6-cudnn8-devel"
2225
2326 cd ./docker
2427 docker rmi $OUTPUT_IMAGE
@@ -30,21 +33,12 @@ if [[ $build_arm_arch_images = "" ]]; then
3033 cd $pwd
3134fi
3235
33- if [[ $build_arm_arch_images != " " ] ]; then
36+ if [ " $build_arm_arch_images " != " " ]; then
3437 # Build ARM_64 docker
3538 ARCH=" arm64"
36- OS=" ubuntu20.04"
37- DISTRO=" ubuntu2004"
38- PYTHON_VERSION=" 3.8"
39- PYTORCH_VERSION=" 1.12.1"
40- NCCL_VERSION=" 2.9.6"
41- CUDA_VERSION=" 11.3"
42- LIB_NCCL=" 2.9.6-1+cuda11.3"
43- OUTPUT_IMAGE=" fedml/fedml:latest-torch1.12.1-cuda11.3-cudnn8-devel-arm64"
44- NVIDIA_BASE_IMAGE=" nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04@sha256:8e3df8601e81c57e85c082e9bcc6c547641635730ef8516b2cfa9c9e6c1208af"
45- PYTORCH_EXTRA_INDEX_URL=" https://download.pytorch.org/whl/cu113"
46- PYTORCH_GEOMETRIC_URL=" https://data.pyg.org/whl/torch-1.12.0+cu113.html"
47- CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -torch1.12.1-cuda11.3-cudnn8-devel-arm64"
39+ OUTPUT_IMAGE=" fedml/fedml:latest-arm64-torch1.13.1-cuda11.6-cudnn8-devel"
40+ NVIDIA_BASE_IMAGE=" nvidia/cuda:11.6.1-cudnn8-devel-ubuntu20.04@sha256:1a06a6cc47ba6ade96c646231c3d0f3216f9b32fb1420f88e46616eea478a661"
41+ CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -arm64-torch1.13.1-cuda11.6-cudnn8-devel"
4842
4943 cd ./docker
5044 docker rmi $OUTPUT_IMAGE
@@ -58,16 +52,8 @@ if [[ $build_arm_arch_images != "" ]]; then
5852
5953 # Build nvidia_jetson docker
6054 ARCH=" jetson"
61- OS=" ubuntu20.04"
62- DISTRO=" ubuntu2004"
63- PYTHON_VERSION=" 3.7"
64- PYTORCH_VERSION=" 1.12.1"
65- NCCL_VERSION=" 2.9.6"
66- CUDA_VERSION=" 11.3"
6755 OUTPUT_IMAGE=" fedml/fedml:latest-nvidia-jetson-l4t-ml-r35.1.0-py3"
68- NVIDIA_BASE_IMAGE=" nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04@sha256:8e3df8601e81c57e85c082e9bcc6c547641635730ef8516b2cfa9c9e6c1208af"
69- PYTORCH_EXTRA_INDEX_URL=" https://download.pytorch.org/whl/cu113"
70- PYTORCH_GEOMETRIC_URL=" https://data.pyg.org/whl/torch-1.12.0+cu113.html"
56+ NVIDIA_BASE_IMAGE=" nvidia/cuda:11.6.1-cudnn8-devel-ubuntu18.04@sha256:1a06a6cc47ba6ade96c646231c3d0f3216f9b32fb1420f88e46616eea478a661"
7157 CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -nvidia-jetson-l4t-ml-r35.1.0-py3"
7258
7359 cd ./docker
@@ -82,17 +68,9 @@ if [[ $build_arm_arch_images != "" ]]; then
8268
8369 # Build rpi32 docker
8470 # ARCH="rpi32"
85- # OS="ubuntu20.04"
86- # DISTRO="ubuntu2004"
87- # PYTHON_VERSION="3.7"
88- # PYTORCH_VERSION="1.12.1"
89- # NCCL_VERSION="2.9.6"
90- # CUDA_VERSION="11.3"
91- # OUTPUT_IMAGE="fedml/fedml:latest-raspberrypi4-32-py37"
92- # NVIDIA_BASE_IMAGE="nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04@sha256:8e3df8601e81c57e85c082e9bcc6c547641635730ef8516b2cfa9c9e6c1208af"
93- # PYTORCH_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cu113"
94- # PYTORCH_GEOMETRIC_URL="https://data.pyg.org/whl/torch-1.12.0+cu113.html"
95- # CURRENT_IMAGE="fedml/fedml:${FEDML_VERSION}-raspberrypi4-32-py37"
71+ # OUTPUT_IMAGE="fedml/fedml:latest-raspberrypi4-32-py38"
72+ # NVIDIA_BASE_IMAGE="nvidia/cuda:11.6.1-cudnn8-devel-ubuntu18.04@sha256:1a06a6cc47ba6ade96c646231c3d0f3216f9b32fb1420f88e46616eea478a661"
73+ # CURRENT_IMAGE="fedml/fedml:${FEDML_VERSION}-raspberrypi4-32-py38"
9674
9775 cd ./docker
9876 docker rmi $OUTPUT_IMAGE
@@ -106,17 +84,9 @@ if [[ $build_arm_arch_images != "" ]]; then
10684
10785 # Build rpi64 docker
10886 ARCH=" rpi64"
109- OS=" ubuntu20.04"
110- DISTRO=" ubuntu2004"
111- PYTHON_VERSION=" 3.7"
112- PYTORCH_VERSION=" 1.12.1"
113- NCCL_VERSION=" 2.9.6"
114- CUDA_VERSION=" 11.3"
115- OUTPUT_IMAGE=" fedml/fedml:latest-raspberrypi4-64-py37"
116- NVIDIA_BASE_IMAGE=" nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04@sha256:8e3df8601e81c57e85c082e9bcc6c547641635730ef8516b2cfa9c9e6c1208af"
117- PYTORCH_EXTRA_INDEX_URL=" https://download.pytorch.org/whl/cu113"
118- PYTORCH_GEOMETRIC_URL=" https://data.pyg.org/whl/torch-1.12.0+cu113.html"
119- CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -raspberrypi4-64-py37"
87+ OUTPUT_IMAGE=" fedml/fedml:latest-raspberrypi4-64-py38"
88+ NVIDIA_BASE_IMAGE=" nvidia/cuda:11.6.1-cudnn8-devel-ubuntu20.04@sha256:1a06a6cc47ba6ade96c646231c3d0f3216f9b32fb1420f88e46616eea478a661"
89+ CURRENT_IMAGE=" fedml/fedml:${FEDML_VERSION} -raspberrypi4-64-py38"
12090
12191 cd ./docker
12292 docker rmi $OUTPUT_IMAGE
0 commit comments