generate.sh 815 字节
Newer Older
Y
yuyang18 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#!/bin/bash
set -e
cd `dirname $0`
m4 -DPADDLE_WITH_GPU=OFF -DPADDLE_IS_DEVEL=OFF -DPADDLE_WITH_DEMO=OFF \
   Dockerfile.m4 > cpu/Dockerfile
cp build.sh cpu/

m4 -DPADDLE_WITH_GPU=OFF -DPADDLE_IS_DEVEL=ON -DPADDLE_WITH_DEMO=OFF \
   Dockerfile.m4 > cpu-devel/Dockerfile
cp build.sh cpu-devel/

m4 -DPADDLE_WITH_GPU=OFF -DPADDLE_IS_DEVEL=ON -DPADDLE_WITH_DEMO=ON \
   Dockerfile.m4 > cpu-demo/Dockerfile
cp build.sh cpu-demo/

m4 -DPADDLE_WITH_GPU=ON -DPADDLE_IS_DEVEL=OFF -DPADDLE_WITH_DEMO=OFF \
   Dockerfile.m4 > gpu/Dockerfile
cp build.sh gpu/

m4 -DPADDLE_WITH_GPU=ON -DPADDLE_IS_DEVEL=ON -DPADDLE_WITH_DEMO=OFF \
   Dockerfile.m4 > gpu-devel/Dockerfile
cp build.sh gpu-devel/

m4 -DPADDLE_WITH_GPU=ON -DPADDLE_IS_DEVEL=ON -DPADDLE_WITH_DEMO=ON \
   Dockerfile.m4 > gpu-demo/Dockerfile
cp build.sh gpu-demo/