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

add num_workers for make #23

Merged
merged 1 commit into from
Apr 23, 2018
Merged
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
4 changes: 3 additions & 1 deletion build_paddle.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ $XONSH_SHOW_TRACEBACK = True

import sys; sys.path.insert(0, '')
import config
import os

num_workers = os.environ.get('num_workers', 8)

cd @(config.paddle_path)
mkdir -p build
Expand All @@ -22,7 +24,7 @@ cmake .. -DWITH_TESTING=OFF \
# clean whl
rm -rf python/dist/*
rm -rf python/build
make -j8
make -j @(num_workers)
make install

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