In the machine learning field, especially deep learning, GPU acceleration has gotten a lot of attention. But is it really that using GPU is faster than using CPU in training every model?
As we all know, GPU is also called Graphics Processing Unit. It was initially designed to speed up the process when creating and rendering graphics, to be more specific, to accelerate when calculating each pixel based on complex mathematics of color and lighting models. Although it is easy for the CPU to calculate one pixel, it is burdensome if it is high-resolution images, not to mention videos, especially when the calculation has to be done one by one. Additionally, CPU also needs to handle a lot of other tasks.