You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
465 B
Bash
15 lines
465 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
for tf in tf1 tf2; do
|
|
echo "== $tf"
|
|
case "$tf" in
|
|
tf1) BASE_IMAGE=nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04;;
|
|
tf2) BASE_IMAGE=nvidia/cuda:11.0-cudnn8-runtime-ubuntu18.04;;
|
|
esac
|
|
work_dir=`dirname $0`
|
|
image_id=`docker build -q --build-arg tf=$tf --build-arg BASE_IMAGE=$BASE_IMAGE -f assets/Dockerfile $work_dir`
|
|
docker run --gpus all -it --rm -e TF_CPP_MIN_LOG_LEVEL=1 $image_id
|
|
docker rmi $image_id >/dev/null || true
|
|
done
|