Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix-compile-with-anakin (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Superjomn committed Jun 15, 2018
1 parent 3943d4e commit e2c9e79
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions build_paddle.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@ cd build
rm -rf python/dist/*
rm -rf python/build

subprocess.call("WITH_TESTING=OFF "
"WITH_GOLANG=OFF "
"CMAKE_BUILD_TYPE=Release "
"WITH_GPU=ON "
"WITH_STYLE_CHECK=OFF "
"WITH_FLUID_ONLY=ON "
"WITH_MKL=ON "
"WITH_MKLDNN=ON "
"WITH_DISTRIBUTE=ON "
"WITH_ANAKIN=OFF "
"paddle/scripts/paddle_build.sh build",
shell=True,
cwd=config.paddle_path
)

cd @(config.paddle_path)
cd build

# paddle_build.sh hides some flags, and some new flags can't be controlled
# by environment variable, so use cmake and set flag directly.
cmake .. \
-DWITH_TESTING=OFF \
-DWITH_GOLANG=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_GPU=ON \
-DWITH_STYLE_CHECK=OFF \
-DWITH_FLUID_ONLY=ON \
-DWITH_MKL=ON \
-DWITH_MKLDNN=ON \
-DWITH_DISTRIBUTE=ON \
-DWITH_ANAKIN=OFF

make -j
make install -j

pip install --upgrade python/dist/*.whl

0 comments on commit e2c9e79

Please sign in to comment.