Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Missing paddle.init function in benchmark Resnet script decrease CPU performance

Open kbinias opened this issue 8 years ago • 1 comments

Resnet benchmark script doesn't contain paddle.init() function. Missing this function decrease CPU performance. It runs many threads but only one is actually working. When I add e.g. paddle.init(use_gpu=False) function, it works well - it uses all cores correctly.

kbinias avatar Apr 17 '18 12:04 kbinias

The reason it that paddle.init auto set CPU environment if have not set before. https://github.com/PaddlePaddle/Paddle/blob/f837eee724824a7f06025152400e70a1b9a2be53/python/paddle/v2/init.py#L65-L72

We are manually set CPU environment in fluid now. We will add auto set function later.

luotao1 avatar Apr 18 '18 07:04 luotao1