Skip to content

Commit

Permalink
fix gpu dockerbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Helin Wang committed Mar 22, 2017
1 parent 4951c46 commit 6737c75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion paddle/scripts/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ fi
DOCKERFILE_GPU_ENV=""
if [[ ${WITH_GPU:-OFF} == 'ON' ]]; then
DOCKERFILE_GPU_ENV="ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"

# for cmake to find cudnn
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
fi

mkdir -p /paddle/build
cd /paddle/build

# build script will not fail if *.deb does not exist
rm *.deb || true
rm *.deb 2>/dev/null || true

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
Expand Down

0 comments on commit 6737c75

Please sign in to comment.