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

Page 14 / 20 Prev Next
  RSS

benwabenwa
(@benwabenwa)
New Member
Joined: 11 months  ago
Posts: 2
June 11, 2018 7:00 pm  

The script worked really fine for me :

Mac pro 2013 + Atikio Node + GTX 1070


ReplyQuote
mrghanim
(@mrghanim)
Active Member
Joined: 4 months  ago
Posts: 5
June 12, 2018 1:15 am  

Hi there,

I tried all the steps for both MacBook Pro 2018 and iMac with no luck.. is there a clip I can look at to make it easier ?


ReplyQuote
keefar
(@keefar)
New Member
Joined: 6 months  ago
Posts: 2
June 12, 2018 3:15 pm  

The script worked fine on 10.13.5:
MacBook Pro 13" Touchbar 2017
GTX 960 in Sonnet Breakaway 350

eGPU is discovered during boot and during login screen. Disconnect or eject is not possible without kp.

Thanks a lot!


ReplyQuote
(@mikey_schreurs)
Active Member
Joined: 9 months  ago
Posts: 12
June 12, 2018 5:02 pm  

I had to do a restart in 10.13.5 and now my eGPU setup is broken. I've tried installing again to no avail. Won't recognize. If I reboot with eGPU connect I wont even get the startup sound. 

Ideas? I feel like I've tried everything in the Known issues.

Mac Pro Late 2013, Sonnet Breakaway 350 with GTX 1070Ti. Currently on 387.10.10.10.35.106 Web Driver.

@benwabenwa Have you ran into any issues yet with your setup?


ReplyQuote
Rycco
(@rycco)
Reputable Member
Joined: 2 years  ago
Posts: 267
June 12, 2018 5:46 pm  

The script worked fine on 10.14:
MacBook Pro 15" Touchbar 2017
GTX 1080 ti in Mantiz Venus

eGPU is discovered during boot and during login screen. Disconnect or eject is not possible without kp.

Thanks a lot!

mid-2017 15" Macbook Pro RP555 + [email protected] (Mantiz Venus) + macOS & Win10


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Prominent Member
Joined: 2 years  ago
Posts: 904
June 12, 2018 7:29 pm  

Got bored of waiting for AMD to play easier in Bootcamp and/or FCP to utilise external GPUs so reran this script and switching workflow to DaVinci...

MASSIVE thanks to everyone for their hard work. Ran perfectly, had disconnect "null" if I plugged in after boot (even after logging out) but booting with it plugged in no wozza...

Edit: It crashes the whole system on disconnect, which is technically quite bad and not sure what bad things its doing, but then I'm not too fussed about hot plugging so hopefully shutting down works fine.

2017 13" MacBook Pro Touchbar + [email protected] (AKiTiO Thunder3) + Win10
2017 13" MacBook Pro Touch Bar + [email protected] (Sonnet Breakaway Box) + Win10
---
LG 5K Ultrafine flickering issue fix


Aweenz, goalque and theitsage liked
ReplyQuote
merlinz
(@merlinz)
New Member
Joined: 7 months  ago
Posts: 4
June 13, 2018 11:20 am  

Quick update,
I've mentioned the other day, new script has been installed successfully and overall it worked well beside Adobe Premier and Vray render for Sketchup.

Today,
I've installed the old verison of CUDA driver - inspired by some other posting though, and just re-update as CUDA Preference suggested.

Tada! all works properly - haven't checked the CUDA version when I installed the new script.

Anyhow it works as expected. Thanks again both of you.

cuda_a cuda_b
cuda_c

iMac Retina 5K 2017 64GB + Sonnet Breakaway Box 550 + GTX 1080Ti


ReplyQuote
Silverblade555
(@silverblade555)
New Member
Joined: 11 months  ago
Posts: 2
June 14, 2018 9:23 am  

First off I want to thank fr34k, mac_editor and all the geniuses that give their valuable time for this excellent work that benefits people like me who is desperate for a nvidia Cuda solution for Mac yet lack of scripting skill. Meddling with terminal is terrifying but fr34k script made it almost idiot proof.

Here's my result after installing the script.
My system:
iMac 5k, 27", 2017
4.2 Ghz Intel Core i7
Thunderbolt 3
memory 40gb 2400 MHz DDR4
Radeon Pro 580 8gb
macOS 10.13.5 (17F77)
SIP: disabled

eGPU enclosure:
Razer Core X

eGPU:
Nvidia GTX 1080 Ti 11gb
PCIe lane width - x4

The initial installation failed a couple of times due to time out when downloading nvidia driver. My internet speed is considerably fast but the downloading was terribly slow. Final installation was successful after multiple retry as it gets better each time with the downloading speed.
The disconnect is in (null) state as expected and can only do hot plug in otherwise the screen will just go black when start up.
Cuda driver version: 396.64
GPU driver version: 387.10.10.10.35.106 after updated from 387.10.10.10.35.107

This setup is mainly for 3D rendering. Thus far, only blender cycle can pick up the Cuda cores and rendered 3x faster than my CPU.
As for Octane render, it can only identify nvidia card but not Cuda cores. Octane render window show only black screen and nothing gets rendered. The GPU activity window indicated there wasn't any activity as well. I'm not sure if is due to the unidentified Cuda cores. Can anyone who had successfully run octane render with this script share some lights how you did it?
Many thanks in advance.


ReplyQuote
23d1
 23d1
(@23d1)
Active Member
Joined: 1 year  ago
Posts: 15
June 14, 2018 4:32 pm  

Works great on Mac Pro (Late 2013) with Sonnet eGFX Breakaway Box 550w and Nvidia 1080 Ti under macOS 10.13.5. Going to give it a go on an iMac Pro with dual eGPUs when I get a chance.


ReplyQuote
(@tinus_64)
New Member
Joined: 4 months  ago
Posts: 1
June 14, 2018 8:14 pm  
  • Hey guys, I don’t have a good english because I’am french so I will try to explain to you my problem. 
  • I bought a egpu with a Nvidia gtx 1060 and I install purge-wrangler, the webdrivers and the drivers nvidia cuda. The nvidia cuda detec a egpu but when go in the system report from my mac who is a MacBook Pro retina 13’ 2015 with MacOS higt Sierra 10.13.5 in the category « graphic cars » there is just write the Intel graphic card whereas in the category « thunderbolt » it is written that egpu is conect. So i don’t unserstand why the mac give me no choice to use the egpu and ok course i have a external display connected to the egpu with HDMI cable. And when i want to reboot my mac with the egpu connected the screen goes black and nothing happens. 
  • Do you have a solution ? 

ReplyQuote
(@hans_k)
Active Member
Joined: 4 months  ago
Posts: 5
June 14, 2018 10:46 pm  

The Script worked fine with my MBP2017 I7 512gb and a Mantiz Venus ( Xotac 780ti AMP)

For gaming I use SwitchResX to turn off the internal LCD of the MBP

 

But here are two Bugs I encountered now:

1. Boot is stuck when you put your MBP with the EGPU to sleep.

Solution: Reinstall

2. It crashed suddenly (no response) now it Boots but as soon as I plug the EGPU in it freezes and panics.

im going to reinstall the script. don't know if it helps 


ReplyQuote
mooovy
(@mooovy)
New Member
Joined: 4 months  ago
Posts: 1
June 15, 2018 8:59 pm  

This is working perfectly on a iMac Pro with Mac OS 10.13.5. (I had some issues with 10.13.3)
Sonnet 550 - GTX 1080 ti
Thanks a lot !


ReplyQuote
ghostronaut
(@ghostronaut)
Eminent Member
Joined: 10 months  ago
Posts: 22
June 16, 2018 8:21 am  

@fr34k

Still running into this problem, which makes it unusable for me atm. I've updated everything and also tried the boot - log out - plugin - login cycle with no luck:

When I boot into macOS with the eGPU (Aorus Gaming Box 1080) already attached, everything works for a couple of seconds, then my internal screen goes black and the performance on the external is super laggy. When I manage to log out (which takes a while because I have to do it on the laggy screen) and log back in, performance is good again for a couple of seconds, then back to the lag.

Any tips on what I could try? Hot plugging doesn't work at all, results on plug-in in black screens on both internal and external, on plug-out on system crash.

EDIT

Finally got it working again. I've tried it before but only just now it worked (via Github fixes).

1 Boot without eGPU
2 Hot plug eGPU without monitor
3 Wait 15"
4 log out
5 hot plug monitor
6 Wait 15"
7 log in
8 boom.

Thanks for all the help!


ReplyQuote
EnigmaticChaos
(@enigmaticchaos)
New Member
Joined: 4 months  ago
Posts: 3
June 16, 2018 3:47 pm  

I'm on a 2017 15' macbook pro, with a GTX 1080 ti in a mantiz venus. I'm on 10.13.5, and the setup works wonderful in bootcamp. But I can't get my external monitor working on my mac. It freezes when I open chrome, and then constantly flickers.


ReplyQuote
mintroini
(@mintroini)
Active Member
Joined: 5 months  ago
Posts: 7
June 17, 2018 11:17 pm  

I've done this step by step, and I do see the GPU showing up on the bar and also I am having HDMI output from the card. I am using a GTX760.
The issue I'm having, is I am unable to run any games, it says "Failed to create an OpenGL context. Your graphics card must support at least OpenGL v3.1.". I think my graphics do take OpenGL but not quite sure if I am right.

Also I am unable to turn off the macbook's internal display, is that right?
I am using a rMBP 2012 Intel + gt650m


ReplyQuote
dvogiatzis
(@dvogiatzis)
Eminent Member
Joined: 12 months  ago
Posts: 21
June 19, 2018 1:34 pm  

I was using Mac OS 10.13.3 until yesterday but today I decided to give a go on 10.13.5 and upgrade my system.

My specs:
Macbook Pro 15"mid 2017 with Radeon Pro 560.
Aorus Gaming Box 1070 connected via mDP with a DELL U3417W

I tried the first script [SCRIPT] Enable AMD+NVIDIA eGPUs on TB1/2/3 Macs on macOS 10.13.4+ without luck. I was plugging the eGPU but nothing was happening... After few hours of troubleshooting without result I tried this script on this thread and it worked right away.

Now I had the problem with the black screen and the mouse cursor. After few hours of reading posts here and there I tried 2 things that solved this:

  • Boot with the eGPU connected
  • While in Mac OS plug the eGPU and when you get the black screen use CMD+SHIFT+Q to log out and after few seconds the login screen will appear.

Thanks for all the good work with this script. I'm using my rig for rendering and video editing. I should write up when I find some time.

I see it's not sticky anymore... I wonder why? It used to be at least a while ago...


ReplyQuote
ikir
 ikir
(@ikir)
Prominent Member
Joined: 2 years  ago
Posts: 750
June 20, 2018 5:25 pm  
Posted by: mrghanim

Hi there,

I tried all the steps for both MacBook Pro 2018 and iMac with no luck.. is there a clip I can look at to make it easier ?

For which card? Also MacBook Pro 2018 is not yet releases, you mean 2017? You don't need this on Thunderbolt 3 Macs with Radeon GPUs

eGPU.it | LG 34" 4K 34UC88 curved ultrawide display
MacBook Pro 2018 Touch Bar i7 quad-core 2.7Ghz - 16GB RAM - 512GB PCIe SSD --> my Mantiz Venus extreme mod with Sapphire Nitro+ RX Vega 64


ReplyQuote
rodrigosouza
(@rodrigosouza)
Active Member
Joined: 6 months  ago
Posts: 5
June 20, 2018 7:53 pm  

You are a genius!! Thank you very much for your amazing work.
This new script startup the system very fast. And my mac mini is the old mid 2011 with the Radeon 6630M and with this script work perfect and fast with a  Nvidia GTX 970 with 2 screens Dell U2414H.  The best for you!!!!


ReplyQuote
rodrigosouza
(@rodrigosouza)
Active Member
Joined: 6 months  ago
Posts: 5
June 20, 2018 7:58 pm  

The only problem... If reset PRAM for any reason and boot the system... Automatically the csrutil enable...and the only thing that will save you will be the time machine. Be carefull.


ReplyQuote
TREE
 TREE
(@tree)
New Member
Joined: 5 months  ago
Posts: 1
June 21, 2018 9:25 am  

Thank you for your hard work. It’s awesome! But I have got some trouble.
(the same problem as @psonice )
The login screen is normal. When I login my account, the internal monitor turns off by itself. This problem did not ever appeared till today. I shuted my mac down this morning.
I have tried everything on Problems and Tweaks, but did not work.

MacBook Pro (15-inch, 2017),macOS 10.13.5 (17F77), NVIDIA GeForce GTX 1070,eGFX Breakaway Box 550

Can anyone tell me what should I do?
Thank you


ReplyQuote
fr34k
(@fr34k)
Reputable Member Moderator
Joined: 10 months  ago
Posts: 386
June 21, 2018 6:18 pm  

FYI
I will tune out until the end of July as there is so much work to do for me. I'm so sorry but unfortunately my studies have priority.
I will promise one thing though: I will be back!

macOS-eGPU.sh on GitHub (fr34k's macOS-eGPU.sh on eGPU.io)
----
2016 15'' MacBook Pro + [email protected] (Sonnet Breakaway 550) + macOS 10.13.6 (17G65 driver: 378.10.10.10.30.107 + CUDA: 396.148)


TREE, Chippy McChipset, ed_co and 1 people liked
ReplyQuote
WolfieTT
(@wolfiett)
New Member
Joined: 4 months  ago
Posts: 1
June 22, 2018 10:33 am  

Hello, thanks for all the great info, the scripts etc. I've been reading through it all and tried to get my setup working using various methods. 
I was anticipating a new MBP intro at the WWDC and bought the AMD Frontier (I know, bit overkill) with a Razer Core X eGPU. 
But unfortunately I will have to wait a bit longer. This is what brought me to this forum, I would like to see if I can get my external Eizo running with the Frontier on my older MBP 15" Late 2013, OS x 10.13.5, NVIDIA GeForce GT 750M 2048 MB.
I'm using Apple TB2 cable with an Apple TB2-TB3 adapter.
So far I seem to keep running into the same issue no matter what I try, and I tried. 🙂
I do get the card to show, so far so good. But as soon as the monitor attaches the screen on the Eizo stays black and the internal monitor greys out a bit and the desktop disappears. I can't do anything, no mouse pointer either. 
Script ran fine, no errors whatsoever. 
I tried the hot plugs, the monitor unplugs etc. Running out of ideas, is this combo just not possible?
It would be so sweet if I can use this beast of a card until the new MBP comes out in September or so...
🙂

Thanks!


ReplyQuote
aleeraser
(@aleeraser)
New Member
Joined: 10 months  ago
Posts: 2
June 23, 2018 5:54 pm  

Hi, everything is working fine for me so I wanted to share my rig, in case it may be helpful. You can find some screenshots at the end of the post.

  • MacBook Pro 15-inch 2015 with Intel Iris Pro, running MacOS 10.13.5 (High Sierra)
  • Zotac GTX 1070Ti
  • Sonnet Breakaway Box 350W
  • Apple TB3-TB2 adaptor + Apple TB2 cable (their cost is just absurd 😡 )

After I assembled the eGPU enclosure, I followed exactly the steps indicated by the readme: I did not connect the eGPU to the Mac until the script asked to do this (actually, I connected the cable to the Mac but did not press the power button on the Breakaway Box), I backed up with TimeMachine, and waited for the script to finish.

If I need to use the eGPU, the only way for MacOS to recognize it is to connected it before startup, otherwise it will just show up as "null". Also, hot unplugging will cause a kernel panic, and the system will reboot; so far, the only way I found to safely disconnect it is to power off the Mac. I'm not into hot (un)plugging, so this all is fine for me.

In order for your gaming experience to benefit from the card, you need to attach an external display directly to the card, and to disable the internal monitor of the Mac, otherwise performances will be awful. To disable the internal monitor I'm currently using SwitchResX, but it's a 10-day shareware and I will soon look for a free (and open source, if possible) alternative. I managed to play Hearthstone (the only Mac game I currently had installed), but also TrackMania United and TES 5: Skyrim through the awesome Porting Kit. They all benefited from a significative graphics boost, though the TB2 port is a big limitation and you won't for sure have a 100% experience please read update n.2 below. A cool Macbook while running Skyrim has no price.

My next aim is to build Tensorflow with CUDA support in MacOS, since I'm planning to use the eGPU for Machine Learning. I'm facing some difficulties, but I will let you know when and if I will accomplish this.

Thanks for the awesome script.

https://ibb.co/fgWXAT
https://ibb.co/dk1ojo

UPDATE
I managed to build Tensorflow with CUDA acceleration. You can find more informations here. I did not use the CUDA drivers provided with this script, since they caused problem while building the source; instead, I downloaded them from NVIDIA official site. I used:

  • NVIDIA Web-Drivers 387.10.10.10.30.107
  • CUDA-Drivers 387.128
  • CUDA 9.1 Toolkit
  • cuDNN 7.0.5 for CUDA 9.1
  • Python 3.6.5
  • Xcode / Command Line Tools 8.3.2
  • bazel 0.10.0
  • Tensorflow v1.7 Source Code

UPDATE n.2
Since I was curious, I tried to install Bootcamp to play some games. Well.. on Bootcamp this is as hard as plug-and-play. I had to do nothing more than plug the cable in, let Windows install all the stuff, and I was ready to go. Played a few games, including Skyrim on Ultra, and I must say that I was quite impressed: everything was astonishingly smooth. This eGPU thing is getting quite interesting! It feels kinda weird to have such graphic power on a Mac.


theitsage liked
ReplyQuote
kusnizza
(@kusnizza)
New Member
Joined: 4 months  ago
Posts: 3
June 25, 2018 12:12 pm  

Hello guys! I have next setup: Macbook Pro 2016 (type-c) + asus XG station pro + 1080ti. I did all from description, but script didn't ask me to connect device. After installation was done, I reboot all system. My card didn't detected: 

pic-1
pic-2
pic-3

And after second reboot nvidia drivers didn't see my card never.

pic-4

When I shut down my eGPU, system failed to black screen and rebooting...
I tried to reinstall plugin, it didn't help me.

I connect eGPU directly, without external monitor. (is it correct?)

When I running script, I didn't see message to connect eGPU, or I didn't understood when I need to do it...

High Sierra 10.13.5


ReplyQuote
smallet
(@smallet)
New Member
Joined: 4 months  ago
Posts: 4
June 25, 2018 1:58 pm  

Unfortunately the script did not work for me. Inspired by reports of success I purchased MacBook 2017 Pro + Razer Core X + MSI Nvidia 1080 Ti. I do not need gaming, I need this to run machine learning algorithms on TensorFlow which I need for work. I have macOS 10.13.5. After installation of the script my system crashed multiple times. Nvidia driver can identify the card, but macOS does not list it. Furthermore, I remember previously it showed me both - Intel HD and Radeon Pro 560 in the "About This Mac" box. Now I only see Intel HD. Not sure if this was caused by the script. Does it mean that now my Mac only runs on Intel HD card?

When I switch to the eGPU with Nvidia utility, it asks to reboot, then built-in monitor goes black and the external one looks like an external monitor, i.e. - no icons or menu bar, but response is very slow, selected menu items look weird. The only way to get out of this state is to disconnect eGPU, which causes crash. But most importantly, although CUDA driver identifies the card, when I run deviceQuery from CUDA samples, it hands. The card is unusable. Not sure what I can do now. How can I restore system to the previous state?


ReplyQuote
smallet
(@smallet)
New Member
Joined: 4 months  ago
Posts: 4
June 25, 2018 11:18 pm  

It's good that I made full backup before running the script. Now I am restoring the machine. It already took three hours and may take  one or two more. One work day to try this feature - way too expansive. God knows how many more days it will take to make it work. If your job depends on it, do not use this solution.


ReplyQuote
(@liu_hongbin)
Active Member
Joined: 11 months  ago
Posts: 14
June 25, 2018 11:21 pm  

@kusnizza @smallet try to connect egpu at the login screen.


ReplyQuote
quangquach
(@quangquach)
Active Member
Joined: 10 months  ago
Posts: 5
June 26, 2018 6:50 am  

Hi @fr34k
I just wanna say thank you. Your script works like a charm on my Macbook Pro 2015 15' (with dGPU AMD M370X), macOS 10.13.5, Tb2, Atikio Node + GTX 1060. 

There is no need to log out/log in as well. Never expected that the script could run that perfect after despairingly failed to attempt many other solutions.


ReplyQuote
smallet
(@smallet)
New Member
Joined: 4 months  ago
Posts: 4
June 26, 2018 12:51 pm  
Posted by: Liu Hongbin

@kusnizza @smallet try to connect egpu at the login screen.

I am sorry, I tried everything. I really cannot waste my time like that. IMHO, the script clearly has a problem with latest MacBook Pro (2016 and 2017 models are very similar) and macOS.


ReplyQuote
hulk_0329
(@hulk_0329)
Active Member
Joined: 5 months  ago
Posts: 6
June 26, 2018 1:51 pm  

Have you tried disable the Auto graphic switch? Mind will not work when it is enable. I have a 2017 15" macbook pro with amd 560 and using a 1080Ti


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 2 years  ago
Posts: 349
June 26, 2018 6:16 pm  

@smallet, you have a rig similar than mine.
Just go to my signature and follow the steps I did (slow, and step by step, just one step missing or not doing correctly, and doesn't work). It is bullet proof, and I did that guide for myself, if you are not able, could be something wrong with your hardware...

mid-2017 Macbook Pro RP560 + MSI GTX1080Ti GAMING [email protected] (Mantiz Venus) + macOS10.13.5 & Win10


ReplyQuote
(@liu_hongbin)
Active Member
Joined: 11 months  ago
Posts: 14
June 27, 2018 5:46 am  

I have macbook pro 2016 + akitio + 1080ti + tensorflow, it is not perfect but works, and I think it is the only solution out there, so I do appreciate the authors releasing it for FREE.


ReplyQuote
Vaspo
(@vaspo)
New Member
Joined: 4 months  ago
Posts: 1
June 28, 2018 8:05 pm  

works fine
High Sierra 10.13.5
MacBook Pro 15 late 2013
eGPU AORUS Gaming Box with MSI GTX 1070 AERO or Inno3D GTX 1060 via pci-e extender
External monitor w/o issues
Internal display via 4k HDMI fake adapter


ReplyQuote
MacUser2
(@macuser2)
Active Member
Joined: 4 months  ago
Posts: 7
June 28, 2018 8:55 pm  

Hi everyone, new to this EGPU hardware but having issue.

system 
macbook pro 2016 13inch no touch bar I5 basic model
EGPU - razor core v2 , EVGA 1070 8gb oc edition
external monitor AOC anon 4k monitor 

OS - MacOS 10.13.5

I have got the script to run but when I run a game it crashed and black screens, when I use the heaven benchmark it doesn't go pass 2 FPS.
Can anyone tell me what is wrong with the setup am I missing something?

any help appreciated.

MacBook Pro 13 inch i5 2016 & MacBook 13 inch w/Touch Bar 2018 i7 - EVGA GTX 1070 SC razor core V2


ReplyQuote
smallet
(@smallet)
New Member
Joined: 4 months  ago
Posts: 4
June 28, 2018 10:16 pm  
Posted by: ed_co

@smallet, you have a rig similar than mine.
Just go to my signature and follow the steps I did (slow, and step by step, just one step missing or not doing correctly, and doesn't work). It is bullet proof, and I did that guide for myself, if you are not able, could be something wrong with your hardware...

Yes, probably. Unfortunately this is very time consuming process. Maybe I will be able to try again in a couple of weeks. Also I have little idea about what this script is doing. As a systems software engineer, I would like to know what is happening to my machine.


ReplyQuote
aleeraser
(@aleeraser)
New Member
Joined: 10 months  ago
Posts: 2
June 28, 2018 10:26 pm  

If you plan on playing games you should first disable the internal monitor (really disable, not just turn the brightness down), and use the external monitor only. Did you try this?


ReplyQuote
Page 14 / 20 Prev Next