Setup & Software Discussions
[SCRIPT] automate-eGPU.sh v1.0.1 - macOS eGPU installation tool
 

[SCRIPT] automate-eGPU.sh v1.0.1 - macOS eGPU installation tool  

 of  9
  RSS

geoheil
(@geoheil)
Eminent Member
Joined: 2 years ago
 

Is the  https://github.com/goalque/automate-eGPU script required when just using the e-gpu for number crunching i.e. machine-learing / deep learning?

 

When manually downloading the beta driver WebDriver-378.05.05.05f01.pkg from Nvidia I get the following error:

Mac OS X version 10.12.5 (16F73) is not supported with this package. Please see NVIDIA’s website for further driver information.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Panoptical
(@panoptical)
Active Member
Joined: 2 years ago
 

Can someone point me to the/a thread regarding problems installing automate-eGPU.sh on macbook pro 2016.

I successfully did it once before,  (and removed it) but now i am stuck with the endless cycle of "Hot-plug the Thunderbolt cable and run the script again." Akitio thunderbolt 3 node, macbook pro 2016. with a dell2415q as external monitor. Carefully followed the steps over and over again. 

Any help would be greatly appreciated!

2016 macbook pro touch bar & 2014 imac 5k | GTX1080Ti in AKiTiO Node | Dell P2415Q display


ReplyQuote
Panoptical
(@panoptical)
Active Member
Joined: 2 years ago
 

Actually the problem seems to be entirely due to the fact that the Thunderbolt 3 cable is not the same as the apple usb C.  So for now my computer is tethered to the Akitio Node via a 18" leash.  I didnt know this- but theres a big difference. Wish that knew that in advance- could have saved half a day. Hope this is helpful to somebody. 

What is the difference between USB-C and Thunderbolt 3?

USB Type-C, or USB-C, is a specification for connectors and cables. Some of the key features include:

  • Symmetrical and flip-able, or reversible. Both sides (top and bottom) can be inserted in the port in either direction, meaning that you no longer have to make sure a cable is inserted “right-side” up.
  • Delivery of up to 100W of power.
  • Supports alternate modes, such as DisplayPort, Thunderbolt, etc.

Thunderbolt 3 defines a superset of capabilities that runs on USB-C connectors and cables. In brief, Thunderbolt 3 brings Thunderbolt to USB-C. Here are the superset of features that Thunderbolt 3 provides:

  • At 40 Gbps, Thunderbolt 3 is the fastest connection available. By comparison, native USB 3.1 operates at 10 Gbps.
  • Thunderbolt 3 is bi-directional with four lanes of PCI Express Gen 3 and eight lanes of DisplayPort 1.2.
  • Now with a Thunderbolt 3 port, you can connect to any dock, device or display, including billions of USB devices.

2016 macbook pro touch bar & 2014 imac 5k | GTX1080Ti in AKiTiO Node | Dell P2415Q display


ReplyQuote
JDug
 JDug
(@jdug)
Eminent Member
Joined: 2 years ago
 

So do you now have this config working properly?  Can I ask what version of OSX you are running?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Panoptical
(@panoptical)
Active Member
Joined: 2 years ago
 

Yes all is well. No problems. Feel a bit stupid as i fussed with it for a few hours before finding mention of it on another tutorial of how to set up an egpu.  Many of the tutorials assume a certain level of knowledge users have and leave out information that is super obvious to them but for others with less experience one would never know. I've been working on macs since 94 and haven't had to dig much under the hood. Luckily, both goalque and rastafabi (and others) are pretty patient with the "newbies".

 

2016 macbook pro touch bar & 2014 imac 5k | GTX1080Ti in AKiTiO Node | Dell P2415Q display


ReplyQuote
Panoptical
(@panoptical)
Active Member
Joined: 2 years ago
 

jDug:  10.12.5

 

2016 macbook pro touch bar & 2014 imac 5k | GTX1080Ti in AKiTiO Node | Dell P2415Q display


ReplyQuote
JDug
 JDug
(@jdug)
Eminent Member
Joined: 2 years ago
 

Can you reenable SIP after installing the script?  Or do you need to keep SIP disabled for the script to continue to work with each restart of the computer?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
pulse2344
(@pulse2344)
New Member
Joined: 2 years ago
 

I am getting the "NVIDIA Chip Model" coming up in Graphics/Display once using the script. I have installed and uninstalled. Even used the -a flag, but nothing is seeming to work. Using an Akitio Node with a thunderbolt 3 to thunderbolt 2 connection on a early 2015 13 inch. I'm also using the 1050ti card. I can't even start my mac up with the egpu plugged in, and unplugging it will freeze/restart my mac. Any suggestions? Also im on Sierra 10.12.5 and current webdriver is 378.05.05.15f01

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Panoptical
(@panoptical)
Active Member
Joined: 2 years ago
 

pulse2344: I am definitely not an expert here- but one tip- you have to follow the process very precisely, in the correct order. You should not unplug the egpu from your mac when its on unless instructed by the script(Rastafabi's script). 

 Are you using automate-egpu.sh? Did you try with egpu enabler by Rastafabi instead?

There's no mention of a second monitor. Check that you have this set up right. You need a second monitor to get this going, and some cables dont work with some monitors.

There's some tricky stuff about getting it all up and running after install that requires the correct order in which you shut things down, and then turn on/restart. Just getting that wrong will make it not work correctly. This differs between the 2 scripts. 

It's not so hard, but if you have one thing off it doesn't work. A friend whom is much more savvy than i, did it in a half hour! Wish i had called him. 

Good luck. 

2016 macbook pro touch bar & 2014 imac 5k | GTX1080Ti in AKiTiO Node | Dell P2415Q display


itsage liked
ReplyQuote
wpetreman
(@wpetreman)
New Member
Joined: 2 years ago
 

No

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
xenoshroud
(@xenoshroud)
Active Member
Joined: 3 years ago
 

@pulse2344: Couple of questions for you.

1) Are you hooking this up to an external display, or are you using the eGPU to accelerate your internal display?

  • From my experience, I think its easier to get the eGPU working on an external display. You may want to try that before trying to accelerate the internal display.

2)Is the AKiTiO Node attached to the TB2 port that is closest to the MagSafe port?

  • I have a mid-2014 13" MBP and if my Node is not attached to that port (closest to MagSafe), I experience the same symptoms as what you are currently seeing.

Hope this helps.

AKiTiO Node + ASUS GTX 1070 Turbo 8GB (macOS High Sierra 10.13 and Windows 10)
MacBook Pro (Retina, 13-inch, Mid-2014) 3.0GHz Dual Core Intel i7-4578U / 16 GB 1600 MHz DDR3 / 512GB SSD


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

2012 retina macbook pro nvidia gt 650m 16gb ram 2,6ghz i7 akitio node gtx 1070

WORKS, somehow under heavyload the system freezes, tried the internal gpu shutoff and manual internal display off, to no avail. any help or useful info? thanks 

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


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

Hi Guys

 

Just want to thank you for the AMAZING script and easy setup!!

 

Built a GTX1050ti 4GB (Gigabyte version) on a MBPr (mid-2012) , working flawlessly. 🙂 

Macbook Pro Retina mid-2012 - Akitio Thunder2 - GTX1050TI 4GB win10/mac os


itsage liked
ReplyQuote
Light
(@light)
New Member
Joined: 2 years ago
 
  • Is there a guide for iMac 5k, AMDs?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
lukicharms
(@lukicharms)
Eminent Member
Joined: 2 years ago
 

I''m still having trouble with my internal display flickering on and off while I have my GTX 1080 Ti plugged in. The external display plugged into my eGPU works fine, but after a few minutes my Macbook pro 2016 15" amd455 internal display keeps glitching and flickering.

When the eGPU is not plugged in it works fine. Any ideas on what may be the issue? 

SIP is disabled and im on Sierra 10.12.4

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
fireheadman
(@fireheadman)
Trusted Member
Joined: 2 years ago
 

just  checking in again..... (its been a month or so).

I just updated to Sierra (macOS) v10.12.6.   Everything is still working GREAT!

  1. downloaded/installed update
  2. plugged in HDMI cable to mac mini and rebooted
  3. re-ran the automate-eGPU.sh script, let it download latest Nvidia drivers
  4. rebooted, as soon as the "Apple Whoosh" sounded I unplugged the HDMI cable and viola!... back in business
  5. follow up:   Updated my CUDA drivers and did a sanity reboot (It worked as expected)

Another big thanks to you guys!

 


DAILY DRIVER: ⚡cMP 2010 (ⓄⓈ:DualBoot macOS 10.13.6/Windows 2016 (1803)) | ⒸⓅⓊ:3.47GHz Xeon X5690 (x12 core)
ⓇⒶⓂ:64GB 1333MHz DDR3 | ⓈⓈⒹ:1TB SSD (LiteON 512 -x4 - RAID1) w/Marvell Raid Controller | ⒼⓅⓊ:
Nvidia GTX 1080 TI 11GB Founders Edition
⚡ Previous was MacMini 2011 w/AKiTiO Thunder2 | ⒼⓅⓊ:EVGA GTX 1060 3GB SC Gaming


itsage liked
ReplyQuote
Neo
 Neo
(@neo)
New Member
Joined: 2 years ago
 

Thank you very much for writing this script. Great job!

What I do not understand is that the script should not compatible with the iMac 5k. I use an ultimo 2014 iMac 5k with the R9 M295X 4GB and an external monitor.

Last year, I got an Akitio Thunder2 together with an EVGA GTX 1070 SC. Followed one of the guides and was able to get it to work under Windows 10 in Bootcamp without any problems. When NVIDIA released the drivers for Mac OS this year, I used your script to install them, and it worked fine. Have been updating both Max OS and the NVIDIA drivers whenever there was an update available, and it kept working together with your script.

Bildschirmfoto 2017 08 17 um 16.36.56

Bildschirmfoto 2017 08 17 um 16.41.42

There is one small glitch: every time I start the iMac, the login screen appears on the external display, while the internal display shows the apple logo and an unfinished progress bar. After (or before) logging in, I switch to standby. When I wake up the iMac, the internal display starts working and everything is fine. So is this behavior the reason for the mentioned incompatibility or was I just lucky to avoid some severe mistake or certain firmware update?

 

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


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

Any chances of getting the script working with an RX Vega 64? Can't get macOS 10.2.6 to recognize the card.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Rastafabi
(@rastafabi)
Trusted Member
Joined: 3 years ago
 

You won't be able to get it running on Sierra, though 10.12.7 or any update might add support. If really need to get it running you're either limited to windows or need to subscribe to the High Sierra (10.13) Beta program. It's only advised to do so, if you exactly know what you're doing.

Creator of the update-redundant macOS 10.12 eGPU enabler package for NVIDIA

AKiTiO Thunder 2 PCIe Expansion Box
NVIDIA GTX 750Ti
MacBook Pro 9.2 ••• until being stolen.
Thanks to the community for helping getting me going again.


ReplyQuote
itsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
 
Posted by: dkgeorge

Any chances of getting the script working with an RX Vega 64? Can’t get macOS 10.2.6 to recognize the card.

There are no drivers for Vega cards in 10.12.6. I don’t believe there’s another build/update to 10.12 Sierra.

You can update to 10.13b to make use of it because there’s native eGPU support and drivers the latest beta.

Best ultrabooks for eGPU use

eGPU enclosure buying guide


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

Thanks guys. I enrolled in the beta program and installed High Sierra 10.13 beta 6 (17A344b).

Unfortunately it doesn't seem like the eGPU is recognized by macOS still. 

MacBook-Pro:automate-eGPU$ sudo ./automate-eGPU.sh 
Thunderbolt device is connected, but no external GPUs detected.

I've got a  Liquid Cooled Sapphire Radeon RX Vega 64 in a AKiTiO Node TB3 connected to my Macbook Pro 15" mid-2015 (with a Radeon R9 M370X ) using Apple's bidirectional TB3>TB2 adapter.

Node is recognized properly as a TB device. When I connect the Thunderbolt cable to the Macbook, the board turns on and it seems to be fully powered. I've rebooted with it turned on, hot-plugged it, cold-plugged it and turned on but ioreg doesn't list the board!

I've even tried using an external PSU to directly provide power to the card while in the Node but still same behavior, no eGPU is recognized. Also tried switching TB2 cables but nothing. I don't know what else could be. 

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 3 years ago
 
Posted by: dkgeorge

Thanks guys. I enrolled in the beta program and installed High Sierra 10.13 beta 6 (17A344b).

Unfortunately it doesn't seem like the eGPU is recognized by macOS still. 

MacBook-Pro:automate-eGPU$ sudo ./automate-eGPU.sh 
Thunderbolt device is connected, but no external GPUs detected.

I've got a  Liquid Cooled Sapphire Radeon RX Vega 64 in a AKiTiO Node TB3 connected to my Macbook Pro 15" mid-2015 (with a Radeon R9 M370X ) using Apple's bidirectional TB3>TB2 adapter.

Node is recognized properly as a TB device. When I connect the Thunderbolt cable to the Macbook, the board turns on and it seems to be fully powered. I've rebooted with it turned on, hot-plugged it, cold-plugged it and turned on but ioreg doesn't list the board!

I've even tried using an external PSU to directly provide power to the card while in the Node but still same behavior, no eGPU is recognized. Also tried switching TB2 cables but nothing. I don't know what else could be. 

This script is not applicable for macOS High Sierra. High Sierra already has native support for select external graphics. The script is for use on Sierra or older only.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 (Mantiz Venus MZ-02)


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 3 years ago
 

Although it is somewhat clear, the original post should be updated such that the first line mentions that this script is not applicable to High Sierra. 

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 (Mantiz Venus MZ-02)


goalque liked
ReplyQuote
dkgeorge
(@dkgeorge)
Active Member
Joined: 2 years ago
 

Thanks for noting that mac_editor .

This makes the problem even worse since it should be really plug 'n' play..

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Rastafabi
(@rastafabi)
Trusted Member
Joined: 3 years ago
 

@dkgeorge: If the GPU is not recognised it's either not seated properly, or does not get enough power. Someone reported issues withe the Nodes power supply earlier. First you might also want to test the GPU in an ordinary PCs PCI bay to make sure it works.

Creator of the update-redundant macOS 10.12 eGPU enabler package for NVIDIA

AKiTiO Thunder 2 PCIe Expansion Box
NVIDIA GTX 750Ti
MacBook Pro 9.2 ••• until being stolen.
Thanks to the community for helping getting me going again.


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 3 years ago
 
Posted by: dkgeorge

Thanks for noting that mac_editor .

This makes the problem even worse since it should be really plug 'n' play..

Do you have an external display connected to your eGPU? This is necessary for now on High Sierra.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 (Mantiz Venus MZ-02)


ReplyQuote
dkgeorge
(@dkgeorge)
Active Member
Joined: 2 years ago
 
Posted by: mac_editor
Posted by: dkgeorge

Thanks for noting that mac_editor .

This makes the problem even worse since it should be really plug 'n' play..

Do you have an external display connected to your eGPU? This is necessary for now on High Sierra.

I don't wanna hijack the thread since it has nothing to do with the script, but with High Sierra the script will become obsolete anyway.

Yes, I tried connecting the HDMI cable to the RX Vega 64 and rebooting it, but nothing. I then installed the RX Vega in the PC and it worked fine with no problems.

I have also an RX 560, which I then tried with the same Node/TB3>TB2 adapter/cable combo and it got recognized by High Sierra. Although the monitor connected to the RX 560 got video signal, the screen was all black and desktop was shown only in Macbook's LCD. Also, applications didn't recognize the RX 560 as an OpenCL device (is there something that has to be done to get OpenCL?). Not sure how far this is an issue with High Sierra beta or with my setup.

For the RX Vega 64, there are reports of enclosures that work with it out of the box, like Mantiz. I purchased the Vega and AKiTIO Node together to make my eGPU so I've asked DanKnight (thank you Dan!) from AKiTiO to check if there are compatibility issues with these new cards. 

Rastafabi I've connected an external PSU (Antec 1300W Platinum) to the Node controller board and to the RX Vega 64 (uses 2 PCIe power connectors) bypassing Node's PSU entirely, it didn't get recognized. The Vega powers up the same way it powers with Node's own PSU, but still same behavior. The only thing I didn't try was using a powered PCIe riser with the Node because I don't have one.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 

All cards should be recognized, also the new Pascal ones on macOS High Sierra beta 6, at least as a VGA-compatible controller under Hardware/PCI information, regardless the device id exists or not. They are all Thunderbolt compatible and appear to the system as built-in, connected to a "Thunderbolt slot". This is a good news for Nvidia.

Acceleration is another story.

At present, there are no other cards except a Sapphire RX 580 Pulse that shows the correct name under Graphics/Displays. 

Vega is not officially supported yet and if someone has got it working partly, it's because Apple is testing these new cards. They can remove the support on the next build. It's under their control whether we see support for wider variety of AMD eGPUs, or just certain cards with a specific vBIOS.

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


dkgeorge liked
ReplyQuote
Rastafabi
(@rastafabi)
Trusted Member
Joined: 3 years ago
 

@goalque: that’s good news! It might be interesting to try injecting an NVIDIA supported device ID into the drivers ones they are available. As Quadro workstation GPU are officially eGPU certified spoofing their device ID might enable support. Therefor this tool might be useful. 

Creator of the update-redundant macOS 10.12 eGPU enabler package for NVIDIA

AKiTiO Thunder 2 PCIe Expansion Box
NVIDIA GTX 750Ti
MacBook Pro 9.2 ••• until being stolen.
Thanks to the community for helping getting me going again.


ReplyQuote
bulletstormer
(@bulletstormer)
New Member
Joined: 2 years ago
 

Having exact same issue as Mork vom Ork  on 10.12.6, RX460 with 2GB VRAM, mid 2015 MBP, Akitio Thunder2 case. The card is recognized OK with external display, but no metal support in the system info report (and no acceleration hence).

Tried including the 9515, 9520 controllers in script, doesn't change a thing except it shows up as such in IORegistryExplorer:  http://take.ms/Eb36V .

Had the same issue on previous versions of Sierra as well. Card is running just fine on Win10 though, so I believe 2GB VRAM is not the issue (though it might have some effect, lower resolution and reboot also don't change anything).

Might be an issue with hotplugging (for Win10 I occasionally need to hot-plug the monitor, though it does load fine usually without me doing so), similar thing doesn't help with  MacOS, tried to hotplug the eGPU, with and without monitor plugged - in both cases the monitor won't display anything, but might be doing the hotplugging wrong. 

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 

He didn’t give credit to this forum.

https://egpu.io/forums/thunderbolt-enclosures/apple-metal-2-external-graphics-development-kit/paged/3/#post-12784

just had a success with RX 460. The system prompts about "external graphics", log out, and you have acceleration.

I was about to link a couple of screenshots but then recalled that it may be against Apple's beta software legal agreement.

Actually, I don't want this community turns into hackintoshing.

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


ikir and itsage liked
ReplyQuote
itsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
 

@goalque, very good to know it’s possible to use other cards for eGPU in 10.13.

Best ultrabooks for eGPU use

eGPU enclosure buying guide


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 

Well, it needed some tweaking 😉

Nvidia's native quadro / kepler drivers do load, but they do nothing. Even though drivers exist, Apple has built a mechanism (probably a few more security layers) that only certain cards work as eGPU.

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


ReplyQuote
bulletstormer
(@bulletstormer)
New Member
Joined: 2 years ago
 

@gaolque did you need to modify any kexts? I tried high sierra b6 with same setup as described 2 posts above and got metal support in system report with a small caveat of black screen on external display =( Hotplugging, logging out/in doesn't change that, b7 didn't resolve the issue neither. IORegistryExplorer reports it's using AMB9500Controller and a corresponding Wrangler. Would appreciate any hints to kext changes if you had to perform any

edit: yay! got it working ~ No artifacts observed neither =D Changes needed are pretty much what the script does for AMD cards on sierra and below

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


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

My setup is MBP Mid 2014, 15"with internal DGPU 750m, Aktio Tb3 -> TB2 (adapter), AMD RX580

I was able to install and test on Geekbench and LuxMark, it works on both.

However, I cannot select the eGPU on softwares such as Premiere, Lightroom, Final Cut, Davinci Resolve, etc...

Is there a way to force these apps to use eGPU instead of dGPU?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Rastafabi
(@rastafabi)
Trusted Member
Joined: 3 years ago
 

In macOS applications should use the GPU driving the screen it's currently displayed on according to the programming guidelines. However in reality most applications always use the GPU driving the screen they are launched on. Thus you can control the behavior often depending from the Docks position, which on modern macOS is screen independent. Else you can also try changing the main screen (where the desktop icons are located on). Some application also offer preferences, while some ignore this altogether and only ever use the Macs internal graphics. In this case your only chance is either waiting for official support which most developers should introduce, when official maOS eGPU support is announced or contact the developer.

Creator of the update-redundant macOS 10.12 eGPU enabler package for NVIDIA

AKiTiO Thunder 2 PCIe Expansion Box
NVIDIA GTX 750Ti
MacBook Pro 9.2 ••• until being stolen.
Thanks to the community for helping getting me going again.


goalque and itsage liked
ReplyQuote
 of  9