Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark of Fluid CPU multi-thread #11620

Closed
luotao1 opened this issue Jun 21, 2018 · 1 comment
Closed

Benchmark of Fluid CPU multi-thread #11620

luotao1 opened this issue Jun 21, 2018 · 1 comment

Comments

@luotao1
Copy link
Contributor

luotao1 commented Jun 21, 2018

Environment

Training

ensure that CPU_NUM * batch_size_per_trainer = batch_size, for example, batchsize=64, threads=8

export CPU_NUM=8
python train_resnet.py --display_step=1 --warmup=0 --use_gpu=false --number_iteration=20 --skip_first_steps=5 --batch_size_per_trainer=8 

The Result (images/second) is as follows:

core 1 8 16 32 40
OpenBlas (Fluid) 1.6342 10.7300 18.9921 30.3432 ---
MKLML (Fluid) 2.6408 15.874 28.2036 33.9912 ---
OpenBlas (V2-0.11.0) --- --- --- --- 25.22
MKLML (V2-0.11.0) --- --- --- --- 32.52

Inference

ensure that --batch_size_per_trainer=1, only change the CPU_NUM, for example, batchsize=8, threads=8

export CPU_NUM=8
python train_resnet.py --display_step=1 --warmup=0 --use_gpu=false --number_iteration=20 --skip_first_steps=5 --batch_size_per_trainer=1 --with_test=True

The Result (images/second) is as follows:

BatchSize 1 2 4 8 16
OpenBLAS (Fluid) 4.7254 8.6016 16.7441 33.9707 59.2398
MKLML (Fluid) 8.4839 13.60 24.8657 48.3597 74.5651
OpenBLAS (V2-0.11.0) 3.31 6.72 11.59 13.17 9.27
MKLML (V2-0.11.0) 6.33 12.02 22.88 40.53 63.09
@shanyi15
Copy link
Collaborator

您好,此issue在近一个月内暂无更新,我们将于今天内关闭。若在关闭后您仍需跟进提问,可重新开启此问题,我们将在24小时内回复您。因关闭带来的不便我们深表歉意,请您谅解~感谢您对PaddlePaddle的支持!
Hello, this issue has not been updated in the past month. We will close it today for the sake of other user‘s experience. If you still need to follow up on this question after closing, please feel free to reopen it. In that case, we will get back to you within 24 hours. We apologize for the inconvenience caused by the closure and thank you so much for your support of PaddlePaddle Group!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants