Nvidia eGPU on Macbook Pro 2017 15inc High Sierra 10.13.14いけた!

今日は連日の寝不足が原因と思しき頭痛。休もうかかなり悩み、結局出社してコアタイム帰りの術。


やっと!表題のNvidia eGPUがMacで使えた!!

GIGABYTE ビデオカード GTX1070搭載 外付けVGA BOX GV-N1070IXEB-8GD

GIGABYTE ビデオカード GTX1070搭載 外付けVGA BOX GV-N1070IXEB-8GD


いやー、ここまで長かった。

f:id:blue1st:20180523004043p:plain

$ ./deviceQuery
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 1070"
  CUDA Driver Version / Runtime Version          9.2 / 9.1
  CUDA Capability Major/Minor version number:    6.1
  Total amount of global memory:                 8192 MBytes (8589737984 bytes)
  (15) Multiprocessors, (128) CUDA Cores/MP:     1920 CUDA Cores
  GPU Max Clock rate:                            1721 MHz (1.72 GHz)
  Memory Clock rate:                             4004 Mhz
  Memory Bus Width:                              256-bit
  L2 Cache Size:                                 2097152 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
  Maximum Layered 1D Texture Size, (num) layers  1D=(32768), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(32768, 32768), 2048 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 2 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      Yes
  Supports Cooperative Kernel Launch:            Yes
  Supports MultiDevice Co-op Kernel Launch:      No
  Device PCI Domain ID / Bus ID / location ID:   0 / 70 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 9.2, CUDA Runtime Version = 9.1, NumDevs = 1
Result = PASS


作業としては↓のスレッドのPurgeWranglerをインストールし、2. Universal NVIDIA eGPU Patchを選択。完了したら再起動。

egpu.io

$ purge-wrangler
Password:
>> PurgeWrangler (3.0.2)

   >> Patching System               >> Reverting & Recovery
   1.  TB1/2 eGPU Patch             4.  Uninstall Patches
   2.  Universal NVIDIA eGPU Patch  5.  System Recovery
   3.  Patch Status Check

   >> Additional Options            >> System Sleep Configuration
   6.  Command-Line Shortcuts       8.  Disable Hibernation
   7.  Script Version               9.  Enable Hibernation

   10. Reboot System
   11. Quit

What next? [1-11]:


表記的には↓のもいるんだけど、こっちは事前にインストールしていたのでOK。

egpu.io


最初は挿したまま再起動したら画面がブラックアウトしたりしたんだけど、起動後ちょっとして後から挿したらとりあえず動いてる。

途中でアップデート走ったりとかもあったので詳しくは未検証。もうちょっと動かしてみてメインのブログの方にまとめようかな。

Windowsでは使えてたけど、やっとこっちの目的でも使える!


ゆるキャン既刊をさくっと読了。アニメの話の後、それぞれの正月、それぞれの冬キャンプ。

4・5巻あたりからアニメの絵柄に近い雰囲気に。