ラベル

AI Forecast 8306MUFG (215) Social (75) life (70) Financial (62) IT (57) Proposal (56) idea (50) Fund Management (48) Trading (43) economics (42) Covid-19 (40) AI (38) Hedge Fund (36) Risk (36) Culture (31) BOJ (29) Science (26) hobby (24) accounting (17) Apps (16) career (11) job (7) Travel (6) Hiking (5) emotion (5) music (3) Statarb (2) piano (2)

2020年9月12日土曜日

グラフィックカードでAI高速化 AI Acceleration by Graphic Card

グラフィックカードでAI高速化

AI Acceleration by Graphic Card



お金をかければAIの高速化は容易だが、ここでは、ローコストでグラフィックボードによるAI高速化をやってみた。結果、YOLOが30-60倍ほど早くなった。The more you spend, the faster your AI will be however, here I tried AI acceleration by graphic board in low cost. As a result YOLO became 30-60 times faster.

数世代前のPC、MY29RA-9(Core2-Duo)の内臓グラフィックが暴走を始めた。Win10を再インストールしても症状が変わらないため、グラフィックカードで逃げられると思い、数世代前のグラフィックボードNVS315を準備した。My few generation old PC MY29RA-9(Core2-Duo)'s on-board-graphic just bricked. I did reinstall Win10 but no improvement, hence I installed few generation old graphic board NVS315 to bypass on-board graphic problem. 

ヤフオクでNVS315が700円、DMS-59/VGA変換ケーブル600円、合計1,300円。NVS315 costed JPY700, DMS-59/VGA conversion cable JPY600, total JPY1.3K(=US $12). Both auction price.

インターフェイスはPCI Express Gen I X 16。最初から正確に差し込むと認識せず。取り合いに問題あり。だましだまし挿入しないと認識しない。Interface is PCI Express Gen I X 16. PC did not recognize if I inserted the card solid precisely. Looks there is some connection issue.  However it worked eventually if I changed inserting angle couple of times. 

GPUを利用するには、chrome://settings/systemでハードウエアアクセラレーションをONにする。同時に、WDDMが2.1バージョンであることが必要。このためには、NVIDIAのサイトからドライバをインストールする。ドライバは3D関連を全部入れる。WebGLは3Dを使っていることが、GPUモニタで確認できる。To make use of GPU, need to turn on hardware acceleration at chrome://settings/system. At the same time it is required to have WDDM as version 2.1 or above. For that purpose, download driver from NVIDIA site.  Make sure to choose custom, all 3D related drivers. WebGL is using 3D that can be confirmed in performance monitor GPU section. 


また、Win10では、NV315のドライバが勝手に更新され、WDDMバージョンが1.0となってしまう。このためWin10デバイス自動更新を無効に設定する。Also in Win10, NVS315 drivers are reset automatic to change WDDM version down to 1.0. To avoid such, disable automatic device driver revision.

現状、Win10のv1909は問題リリースの模様。マイクロソフトのページからisoファイルを作るとv2004がダウンロードされてきた。Currently, Win10 v1909 looks problematic release. When I download iso from Microsoft page, it creates v2004 but not v1909.