Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker_build.sh #1296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docker/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ function execute
if [[ "$SKIP_BUILD_BASE_IMAGE" == "0" ]];then
if [[ "$DOCKER_TYPE" == 'cpu' ]];then
VAI_BASE="ubuntu:20.04"
BASE_IMAGE="${BASE_IMAGE:-xiinx/vitis-ai-${DOCKER_TYPE}-base}"
BASE_IMAGE="${BASE_IMAGE:-xilinx/vitis-ai-${DOCKER_TYPE}-base}"
fi
if [[ "$DOCKER_TYPE" == 'gpu' ]];then
if [[ $TARGET_FRAMEWORK =~ .*"pytorch"* ]];then

VAI_BASE="nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04"
BASE_IMAGE="${BASE_IMAGE:-xiinx/vitis-ai-${DOCKER_TYPE}-pytorch-base}"
BASE_IMAGE="${BASE_IMAGE:-xilinx/vitis-ai-${DOCKER_TYPE}-pytorch-base}"
else
VAI_BASE="nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04"
BASE_IMAGE="${BASE_IMAGE:-xiinx/vitis-ai-${DOCKER_TYPE}-tf2-base}"
BASE_IMAGE="${BASE_IMAGE:-xilinx/vitis-ai-${DOCKER_TYPE}-tf2-base}"
fi
#11.3.1-cudnn8-runtime-ubuntu20.04"
fi
Expand All @@ -80,13 +80,13 @@ function execute
VAI_BASE="rocm/pytorch:rocm5.5_ubuntu20.04_py3.8_pytorch_1.13.1"
#"xcoartifactory.xilinx.com/uif-docker-master-local/rocmiv-internal-pt:5_ubuntu20.04_py3.8_pytorch_release-1.13_3aa2ef3"
add_args=" --build-arg TARGET_FRAMEWORK=$TARGET_FRAMEWORK "
BASE_IMAGE="${BASE_IMAGE:-xiinx/vitis-ai-${DOCKER_TYPE}-pytorch-base}"
BASE_IMAGE="${BASE_IMAGE:-xilinx/vitis-ai-${DOCKER_TYPE}-pytorch-base}"
else
VAI_BASE="rocm/tensorflow:rocm5.5-tf2.11-dev"
BASE_IMAGE="${BASE_IMAGE:-xiinx/vitis-ai-${DOCKER_TYPE}-tf2-base}"
BASE_IMAGE="${BASE_IMAGE:-xilinx/vitis-ai-${DOCKER_TYPE}-tf2-base}"
fi
fi
BASE_IMAGE="${BASE_IMAGE:-xiinx/vitis-ai-${DOCKER_TYPE}-base}"
BASE_IMAGE="${BASE_IMAGE:-xilinx/vitis-ai-${DOCKER_TYPE}-base}"
echo "VAI_BASE: ${VAI_BASE}"

echo "BUild Base image:${BASE_IMAGE} first"
Expand Down Expand Up @@ -122,6 +122,7 @@ function execute
-f ${DOCKERFILE} -t $IMAGE_TAG ./ "
echo "$buildcmd"
$buildcmd
docker tag ${IMAGE_TAG} ${IMAGE_LATEST_TAG}
rtn=$?
return ${rtn}
}
Expand Down