Investigating profilers
Created by: gangliao
For PaddlePaddle, we use REGISTER_TIMER_INFO
to set a timer for performance tuning.
For instance, the timer in BilinearInterpLayer.cpp
to statistics:
{
REGISTER_TIMER_INFO("FwBilinearInterpTimer", getName().c_str());
outV->bilinearForward(*inV, inImgH_, inImgW_, outImgH_, outImgW_,
numChannels_);
}
But, there exist some state of the art profilers to tune performance more intuitively.
for instance, nvvp
[performance analysis GUI] and nvprof
[command line tools].
I will add a doc section about how to use profiler on PaddlePaddle for our teams and developers before Milestone 0.8.2.