深層学習フレームワークにおけるCPUとGPUの性能解析および最適化
書誌事項
- タイトル別名
-
- Performance Analysis and Optimization of CPU and GPU in Deep Learning Framework
この論文をさがす
説明
今日では深層ニューラルネットワーク技術がAI分野に大きく貢献している.その学習プロセスは非常に時間がかかるため,計算環境に合わせた最適化が必要である.この発表では計算環境としてCPUとGPUを考え両者間の深層学習性能を比較する.広く使われている大半の深層学習フレームワークではGPU用の最適化は十分に行われているが,CPU用の最適化は積極的に行われていない.そのようなフレームワークの1つであるChainerも同様であり,内部の関数はCPU向けには十分に最適化されていないといえる.たとえばGPU上で走るほぼすべての関数はcuDNNやCuPyといった深層学習に特化したライブラリを用いて高速化されているが,CPU上で走る部分はNumPyでしか高速化されていない.NumPyは汎用的な科学計算ライブラリであるために,深層学習のような特殊な用途では十分にCPUを活用できているとはいえず,元のChainerを使った性能比較ではCPUとGPU間のプロセッサレベルの差を反映できない.そこで正確な性能差を得るために,CPU上で走る関数内のNumPyで記述された部分をC言語で書き換えてOpenMPとIntel MKLで高速化を行った.その結果として得られる計測結果を用いて,CPUとGPUの深層学習における性能差とその特性を詳細に示す.
Nowadays, deep neural network technology has made a significant contribution to AI field. Its learning process is very time-consuming and needs to be optimized for a computing environment. In this work, we will show a compare of deep learning performance between CPUs and GPUs. Major deep learning frameworks are fully optimized for GPU, but not for CPU. Specifically, Chainer, a widely-used deep learning framework, does not use CPU-specialized kernels for deep learning. Almost all kernels performing well on GPU are optimized with cuDNN and CuPy, libraries specialized for deep learning. In contrast to that, kernels running on CPU are optimized only with NumPy. NumPy, general scientific computing library, is difficult to get high performance in deep learning. So the performance comparison between CPUs and GPUs with the original Chainer implementation does not reflect the performance difference of the processors. To deal with this problem, we rewrite existing kernels running on CPU with C language and optimize them with OpenMP and Intel MKL. We analyze the performance with detailed profiling and discuss characteristics of performance.
収録刊行物
-
- 情報処理学会論文誌プログラミング(PRO)
-
情報処理学会論文誌プログラミング(PRO) 11 (2), 29-29, 2018-06-26
情報処理学会
- Tweet
キーワード
詳細情報 詳細情報について
-
- CRID
- 1050845762839789952
-
- NII論文ID
- 170000149574
-
- NII書誌ID
- AA11464814
-
- ISSN
- 18827802
-
- 本文言語コード
- ja
-
- 資料種別
- journal article
-
- データソース種別
-
- IRDB
- CiNii Articles