CPU vs GPU | Neural Network

GPU vs CPU neural network

I have done two libraries for AI,

  • CPU with Eigen 1 2
  • GPU with CUDA 1 2

They are optimized and work properly. However, there are significant differences in performance.

The GPU library can adapt to other Nvidia graphic card and furthermore improve the time that I obtain within my circumstances. In addition, the graphics card industry is constantly improving their models and we have recently seen the clusters of the graphics card in the business.

The CPU library is stable and can work on any computer because it does not rely on Nvidia hardware, it is a completely cross-platform library that only needs Eigen library which is compatible with every OS.

I have used for the test: i7-7700k vs Nvidia GeForce GTX 1070

CPUGPU
Cores/Threads4/81920
Clock rate (GHz)3.61.7

Performance

The GPU performance better than the CPU, by making big batches, the difference being most extreme. The graphics card is between 2X and 100X faster than the CPU

Batch sizeTime GPUTime CPU
894.66193.71
1645.66198.05
3222.75191.92
6411.79192.51
1286.24189.88
2563.9197.03
5122.44195.43
10241.55190.23

 

Leave a Reply

Your email address will not be published. Required fields are marked *