Paddle
Paddle copied to clipboard
Missing paddle.init function in benchmark Resnet script decrease CPU performance
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.
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.