[SCRIPT] fr34k's macOS-eGPU.sh - one script, all solutions, fully automated
 
Notifications
Clear all

[SCRIPT] fr34k's macOS-eGPU.sh - one script, all solutions, fully automated  

 of  76
  RSS

fr34k
(@fr34k)
Reputable Member Moderator
Joined: 3 years ago
 
Posted by: Architek1

Day 4 with no laptop working after upgrading from 10.13.4 to 10.13.6. Never loads the OS as the progress bar stops halfway through. No safe mode only recovery and single user. In recovery mode I have tried the bash <(curl...) script and nothing happens. I tried without bash, being that it’s a bash shell anyways. Error: /dev/fd/63 permission denied. Would someone with more experience be able to help?

MacBook Pro 10.13.6 > Akitio Node > 980Ti

one moment: your os doesn't boot with or without eGPU connected? Can you get your system to boot at all? If not you will have to reinstall macOS. For that open recovery and reinstall macOS. Your data should be untouched...

fr34k's macOS-eGPU.sh on GitHub or on eGPU.io

2016 15'' MacBook Pro + GTX1080Ti@32Gbps-TB3 (Sonnet Breakaway 550) + macOS 10.13.6 (17G65 driver: 378.10.10.10.30.107 + CUDA: 396.148)


ReplyQuote
Architek1
(@architek1)
New Member
Joined: 2 years ago
 

Nope. With or without eGPU connected, it doesn’t boot.

Edit: As I mentioned it boots into Recovery and single user. I have reinstalled 10.13.6 OS already and still doesn’t work.

MacBook Pro 2012> Akitio Node> 980Ti > Cinema HD


ReplyQuote
precision01
(@precision01)
Trusted Member
Joined: 3 years ago
 
Posted by: Technomad
Posted by: precision01
Posted by: DeNachtwacht

I installed this today on my New 2018 13,3" MacBook Pro with a Aorus Gaming Box 1080 and I am surprised to be able to tell you that it works flawless, I can even enable G-Sync without problems. I also installed Boot Camp because I expected problems with macOS but in Windows 10 I get all kinds of problems (USB doesn't work, can't set resolutions correctly et cetera). So keep up the good work, and maybe... also build a script for windows? 😉

Interesting. Could you please explain what do you do to make it work? Do you hotplug the eGPU after macOS finishes the boot process?

FWIW, I’m hotplugging after OS X completes it’s boot process - not immediately after logging in. I then log out and in again, and am now getting superb performance and no UI lag - CUDA, OpenGL, OpenCL and Metal are all performing well, with Lightroom dramatically faster than it’s ever been before. The only outstanding problem I’m having is getting a clean shutdown.

Good, I will run the script again and do some tests to check if I can achieve the same results.

Razer Core X + AMD Radeon RX 5700 XT - Macbook Pro 15" Mid 2019 Radeon 560X


ReplyQuote
INFINITE FEAR
(@infinite-fear)
New Member
Joined: 2 years ago
 

Hi, I have a problem with my eGPU. The problem is that when my computer boots up with eGPU connected to it at login menu when I type in my password it starts to load and at certain moment loading bar stops and I get an error message and it happens all over again, sometimes as I have noticed the loading bar doesn’t fill up at all it just stays empty and computer also restart and throws away an error message.

 

The equipment I use is :

  1. MacBook Pro (Retina, 13-inch, Early 2015)

Processor : 2,7 GHz Intel Core i5

Memory : 8 GB 1867 MHz DDR3

Graphics : Intel Iris Graphics 6100 1536 MB

Thunderbolt 2 port

SSD capacity : 120 GB

Version 10.13.6 High Sierra

 

 

2)  21:9 Curved UltraWide Monitor 34UC97

21:9 Curved QHD

Flicker-Safe IPS DISPLAY

SRGB OVER 99% / 10-bit-colour via Display Port

THUNDERBOLT™ 2 / MAC® COMPATIBLE

Wall Mountable (100x100)

ENERGY STAR® QUALIFIED

More info about this monitor can be find here if needed : https://www.lg.com/uk/monitors/lg-34UC97

 

3)  AKiTiO Thunder2 PCIe Box

More info about it can be sound here if needed : https://www.akitio.com/expansion/thunder2-pcie-box

 

4) GPU : Gigabyte GeForce GTX 970 Mini ITX Overclocked 4GB GDDR5 PCiE Video Card GV-N970IXOC-4GD

More info about it can be sound here if needed : https://www.gigabyte.com/us/Graphics-Card/GV-N970IXOC-4GD#ov

 

5) Power supply : Corsair RM 650

More info about it can be sound here if needed : https://www.corsair.com/us/en/Power/rm-series-config/p/CP-9020054-NA

 

As far as I have noticed when I had Mac OS El Capitan and used Automate-eGPU.sh script from this

link : https://www.techinferno.com/index.php?/forums/topic/7989-script-automating-the-installation-of-egpu-on-os-x-inc-display-output/     It used to work pretty good but that was years ago, even now if I install Mac OS El Capitan and run this script it wont detect my eGPU from first attempt, even if it detects it and install the script the computer might freeze on dark grey screen just after the restart. I used to turn off computer completely then and turn it back on and sometimes it helped to start eGPU.

Later on I updated my Mac OS El Capitan to Mac OS Sierra 10.12.6 and automate eGPU script both from egpu.io and technoinferno.com used to work. I could turn computer on and off and eGPU was working all the times. But after few hours when I decided to turn on my computer it all just refused to work, at login menu after typing in the password the loading bar was just freezing and rebooting and giving me an error message. I’ve had same errors both with Mac OS Sierra and Mac OS El Capitan. Right now I am using Mac OS High Sierra version 10.13.6 and I used many scripts such as Automate-eGPU version 1.3, purge wrangler.sh. With purge wrangler.sh script I used function “Enable NVIDIA eGPU” and after that rebooted the seestem through purge wrangler script, and again nothing seemed to work. Had same errors, the loading bar was loading up a little (about 25%, sometimes it used to load up to 50% approximately) and whole system was restarted again and again. I hope anyone could tell me what to do to make it all work well, please help me. Thanks!

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
Technomad
(@technomad)
Eminent Member
Joined: 2 years ago
 
Posted by: fr34k
Posted by: Technomad

Just tried the new version and it’s working perfectly - everything accelerated, and no lag. Works fine with the log in, hot plug, log out & in again protocol.  What I can’t work out though is how to sleep or shut down without a last-minute KP. Any suggestions?

Try reboot, and once the system has shut down and your eGPU looses power unplug.

OK - thanks. And sleep appears to be working just fine Smile

Mid-2017 MBP 15”/3.1GHz, Razer Core v2, EVGA GTX1080Ti, LG 34UM95, HTC Vive, Samsung Odyssey, MS Hololens.


ReplyQuote
Technomad
(@technomad)
Eminent Member
Joined: 2 years ago
 

So, all good. Except… …I'm connected to the Razer Core v2 via TB3, then Displayport to my external monitor from my GTX1080Ti. Only, no audio to the monitor at all. I'm assuming that the Razer Core would need to be recognised as an audio output device by my MBP for this to work? Thoughts?

Mid-2017 MBP 15”/3.1GHz, Razer Core v2, EVGA GTX1080Ti, LG 34UM95, HTC Vive, Samsung Odyssey, MS Hololens.


ReplyQuote
motoic
(@tsh3721)
Trusted Member
Joined: 3 years ago
 

Trying again here. At least one game known to crash when attempting to use eGPU. I don't have any others to test with, unfortunately. To my knowledge it's simply using OpenGL. 

  1. Installed the script.
  2. In order to use eGPU I must hotswap, log out and log back in.
  3. "About this mac" shows eGPU powering both my built in display and external display.
  4. Unigen Heaven (API: OpenGL is greyed out with no other options) shows between 30-50fps with all maxed settings (GTX 1070)
  5. Attempt to play a game: League of Legends (OpenGL). Game loads, shows low FPS, crashes within 10 seconds.

Is this a known issue?

2018 15" MBP w/ Radeon Pro 560x
Nvidia GTX 1070
Akitio Node
32" LG 32UD99-W at 4k
macOS Mojave, Bootcamp Windows 10

 
2015 15" MacBook Pro (R9 M370X) [4th,4C,H] + GTX 1070 @ 16Gbps-TB2>TB3 (AKiTiO Node) + Win10 [build link]  


ReplyQuote
piranhaco
(@piranhaco)
Active Member
Joined: 2 years ago
 

Hi! After running the script I can see my Nvidia GeForce 1080 TI in the NVIDIA Driver Manager ( (-) G-SYNK Disabled, (-) ECC Not Supported), and I can see it in my System Information/GraphicsDisplays (External GPU PCIe). And if I run Premiere or After Effects I can see both graphic cards the Nvidia and the Internal AMD working in the Activity Monitor/GPU. So the NVIDIA is installed. But:

- There is no eGPU icon in my menu bar on the top, so I can't select the Nvidia or Eject it.
- Both Monitors are using the internal AMD. The external Monitor is connected to my Node Pro using the DisplayPort, but still it is using the AMD.
- I can't restart the iMac with the eGPU connected. I get both monitors in Black, I can hear the iMac running but I have no monitoring at all. 
- It only works if I connected the eGPU during the Apple Logo at the beginning.  
- Even with Premiere and After Effects taking advantages from the Nvidia and CUDA, I can't run benchmarks using the Nvidia or assign Nvidia to the main Monitor, it is just there, working in the background but I can't select nothing.
- If I try hot-unplugged I get the fatal shutdown. 

- If I run the --Checksystem in macOS-eGPU.sh I get this:

NVIDIA driver  [387.10.10.10.30.106] NVIDIA eGPU enabler  [installed] AMD legacy drivers   [not installed] T82 unblocker  [not installed] NVIDIA dGPU [not available] NVIDIA macOS 10.13.4/.5 patch  [not installed] IO PCIE Tunnelled patch   [not installed] unlocked thunderbolt version   [2] thunderbolt daemon  [not installed] CUDA
CUDA drivers  [396.64] 
CUDA developer drivers  [not installed]
CUDA toolkit  [not installed] CUDA samples  [not installed]

Listing system information...

macOS version                                                       [10.13.4] macOS build                                                          [17E199] SIP status                                                                [0] thunderbolt interface version                              [2]

eGPU information
connected eGPU                                                      [true] eGPU vendor                                                       [NVIDIA] NVIDIA dGPU                                                           [false] AGW version                                                  [10.13.4:17E199]

This is my System:

This is my set up:
- iMac Retina 5K, 27-inch, Late 2015
- High Sierra 10.13.4 (17E199) 
- Node Pro (T3)
- Nvidia Geforce Gtx 1080 Ti
- Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter
- Thunderbolt 2 cable 
- DELL UP2716D Display 27-inch (2560 x 1440).
- Mini-DisplayPort to HDMI Adapter

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
alex gao
(@alex_gao)
Active Member
Joined: 2 years ago
 
I builded tensorflow 1.8.0 with latest Nvidia driver and run the test, but failed: 


2018-07-31 11:42:11.099536: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:859] OS X does not support NUMA - returning NUMA node zero
2018-07-31 11:42:11.100858: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1356] Found device 0 with properties: 
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335
pciBusID: 0000:c2:00.0
totalMemory: 8.00GiB freeMemory: 7.79GiB
2018-07-31 11:42:11.100875: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1435] Adding visible gpu devices: 0
2018-07-31 11:42:12.798611: I tensorflow/core/common_runtime/gpu/gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-07-31 11:42:12.798633: I tensorflow/core/common_runtime/gpu/gpu_device.cc:929]      0 
2018-07-31 11:42:12.798638: I tensorflow/core/common_runtime/gpu/gpu_device.cc:942] 0:   N 
2018-07-31 11:42:12.799160: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7528 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:c2:00.0, compute capability: 6.1)
2018-07-31 11:42:12.799482: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 7.35G (7893723136 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY
2018-07-31 11:42:12.799563: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 6.62G (7104350720 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY
>>> print("hello, {}".format(m))  # => "hello, [[4.]]"
Segmentation fault: 11

macOS-eGPU.sh (v1.4)
Listing installation status of packages...

   NVIDIA driver                                                                                                            [387.10.10.10.40.105]

   NVIDIA eGPU enabler                                                                                                            [not installed]

   AMD legacy drivers                                                                                                             [not installed]

   T82 unblocker                                                                                                                  [not installed]

   NVIDIA dGPU                                                                                                                    [not available]

   NVIDIA macOS 10.13.4/.5 patch                                                                                                  [not installed]

   IO PCIE Tunnelled patch                                                                                                            [installed]

   unlocked thunderbolt version                                                                                                               [2]

   thunderbolt daemon                                                                                                             [not installed]

   CUDA

      CUDA drivers                                                                                                                      [396.148]

      CUDA developer drivers                                                                                                            [396.148]

      CUDA toolkit                                                                                                                      [9.2.148]

      CUDA samples                                                                                                                      [9.2.148]

Listing system information...

   macOS version                                                                                                                        [10.13.6]

   macOS build                                                                                                                            [17G65]

   SIP status                                                                                                                                 [0]

   thunderbolt interface version                                                                                                              [2]

   eGPU information

      connected eGPU                                                                                                                      [false]

   NVIDIA dGPU                                                                                                                            [false]

   AGW version                                                                                                                    [10.13.6:17G65]

Graphics/Displays:

    AMD Radeon R9 M290X:

      Chipset Model: AMD Radeon R9 M290X

      Type: GPU

      Bus: PCIe

      PCIe Lane Width: x16

      VRAM (Dynamic, Max): 2048 MB

      Vendor: AMD (0x1002)

      Device ID: 0x6810

      Revision ID: 0x0000

      ROM Revision: 113-C408A0-730

      VBIOS Version: 113-C408A0-017

      EFI Driver Version: 01.00.730

      Metal: Supported, feature set macOS GPUFamily1 v3

      Displays:

        iMac:

          Display Type: Built-In Retina LCD

          Resolution: 5120 x 2880 Retina

          Framebuffer Depth: 30-Bit Color (ARGB2101010)

          Main Display: Yes

          Mirror: Off

          Online: Yes

          Automatically Adjust Brightness: No

Hardware:

    Hardware Overview:

      Model Name: iMac

      Model Identifier: iMac15,1

      Processor Name: Intel Core i5

      Processor Speed: 3.5 GHz

      Number of Processors: 1

      Total Number of Cores: 4

      L2 Cache (per Core): 256 KB

      L3 Cache: 6 MB

      Memory: 32 GB

      Boot ROM Version: IM151.0217.B00

      SMC Version (system): 2.22f16

Thunderbolt:

    Thunderbolt Bus:

      Vendor Name: Apple Inc.

      Device Name: iMac

      UID: 0x00010011002EC170

      Route String: 0

      Firmware Version: 26.1

      Domain UUID: 99072980-4FA3-5456-8E7D-120F3B163A6D

      Port:

          Status: No device connected

          Link Status: 0x101

          Speed: Up to 20 Gb/s x1

          Current Link Width: 0x1

          Receptacle: 1

          Link Controller Firmware Version: 0.14.0

      Port:

          Status: No device connected

          Link Status: 0x101

          Speed: Up to 20 Gb/s x1

          Current Link Width: 0x1

          Receptacle: 2

          Link Controller Firmware Version: 0.14.0

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
precision01
(@precision01)
Trusted Member
Joined: 3 years ago
 
Posted by: precision01
Posted by: Technomad
Posted by: precision01
Posted by: DeNachtwacht

I installed this today on my New 2018 13,3" MacBook Pro with a Aorus Gaming Box 1080 and I am surprised to be able to tell you that it works flawless, I can even enable G-Sync without problems. I also installed Boot Camp because I expected problems with macOS but in Windows 10 I get all kinds of problems (USB doesn't work, can't set resolutions correctly et cetera). So keep up the good work, and maybe... also build a script for windows? 😉

Interesting. Could you please explain what do you do to make it work? Do you hotplug the eGPU after macOS finishes the boot process?

FWIW, I’m hotplugging after OS X completes it’s boot process - not immediately after logging in. I then log out and in again, and am now getting superb performance and no UI lag - CUDA, OpenGL, OpenCL and Metal are all performing well, with Lightroom dramatically faster than it’s ever been before. The only outstanding problem I’m having is getting a clean shutdown.

Good, I will run the script again and do some tests to check if I can achieve the same results.

It worked!
Here goes my report:

1. First I uninstalled fr34k's macOS-eGPU.sh script using the command line:
bash <(curl -s https://raw.githubusercontent.com/learex/macOS-eGPU/master/macOS-eGPU.sh)   --uninstall

2. Then, I installed the script following actual fr34k's instruction on GitHub.

3. After installation is complete, I restarted the computer with Aorus eGPU disconnected.

4. After the boot process was complete, I hotplugged the eGPU. Both internal and external monitor flashed, and after that internal monitor had no issues and external monitor went black, only with mouse cursor.

5. With the eGPU still connected I then did a simple logout and login, and everything was working fine. I finally have my Aorus eGPU working on external display!

Now some relevant things I noticed:

First, my primary objective with eGPU is to do Cinema 4D GPU rendering (Octane / Redshift). The second is to be able to play AAA steam games on Windows 10 without having to maintain a separate computer just for that.

a) I did the external display tests in a LG B7P OLED TV. Surprisingly, Nvidia eGPU on macOS have a noticeable lower input lag on macOS eGPU than on Windows 10 bootcamp (Mouse cursor feels and looks smoother on macOS).
b) There's no eGPU disconnect icon
c) Trying to change external display resolution usually results in a noise, which in turn can be solved by disconnecting connecting external display cable.
d) If macOS goes into stand-by, it can awake without issues. On Windows 10 bootcamp, if the system goes into stand-by, I have to restart the system for the eGPU to work again.
e) It looks like eGPU can randomly accelerate internal display.

In general, it seems that Apple is putting more effort on eGPU technology than microsoft.

If Apple just decided to officially support nVivia in macOS 10.14, scenario would be promising.

Thanks again, @fr34k and @DeNachtwacht .

Razer Core X + AMD Radeon RX 5700 XT - Macbook Pro 15" Mid 2019 Radeon 560X


fr34k and Antani72 liked
ReplyQuote
 of  76