Jump to content

[SCRIPT] Automating the installation of eGPU on OS X (inc display output)


euqlaog

Recommended Posts

15 hours ago, goalque said:

@panini

You have messed up your system if you are running build 14F1605 on Mac mini and there is no driver 346.02.03f05 for NVDAStartup.

Reinstall OS X. Never install/update Nvidia web drivers manually. Let the script download the correct driver.

On OS X Yosemite, the NVDAStartup stays loaded just a moment after restart so run kextstat command immediately. It’s normal that it vanishes away from the kextstat list and shows Loaded: No.

@goalque

 

Ok - here's what I did:

  1. download fresh yosemite installer
  2. create yosemite usb installer
  3. boot mac mini from usb installer
  4. disk utility
    1. erase my hd
  5. do clean install of yosemite
    1. mac mini now also has build 14F27 
  6. do install of automate-eGPU.sh script
  7. run automate-eGPU.sh script
    1. reboot
    2. no  GTX 960 screens light up
    3. checking cmd's
      1. macmini2:Desktop erwin$ kextstat -l |grep NVDA
        107 0 0xffffff7f80eed000 0x3000 0x3000 com.nvidia.NVDAStartup (10.0.5) <12 4 3>
        125 2 0xffffff7f80f4f000 0x2d8000 0x2d8000 com.nvidia.web.NVDAResmanWeb (10.0.5) <102 96 94 12 7 5 4 3 1>
        126 0 0xffffff7f81236000 0x1ff000 0x1ff000 com.nvidia.web.NVDAGM100HalWeb (10.0.5) <125 12 4 3>
        macmini2:Desktop erwin$ uptime
        17:32 up 1 min, 4 users, load averages: 1.46 0.53 0.20
      2. macmini2:Desktop erwin$ syslog -B -F '$Time $(Sender): $Message' | grep NVDA
        Feb 7 17:19:52 kernel: NVDAStartup: Web
        Feb 7 17:19:52 kernel: NVDAGM100HAL loaded and registered
        Feb 7 17:19:55 kernel: NVDA::rmStart failed
        Feb 7 17:19:55 kernel: NVDA,Display-B: Not usable
        Feb 7 17:19:55 kernel: NVDA,Display-C: Not usable
        Feb 7 17:19:55 kernel: NVDA,Display-D: Not usable
        Feb 7 17:19:55 kernel: NVDA,Display-E: Not usable
        Feb 7 17:19:55 kernel: NVDA,Display-F: Not usable
        macmini2:Desktop erwin$
      3. Here, at the above point 2, I notice visible differences
    4. ran sudo ./automate-eGPU.sh -a
      1. background services enabled
      2. reboot
      3. again no new visible improvement
      4. system profiler shows NVIDIA chip model on PCIe bus (see screenshot)

At the moment Xcode is still downloading, so I will post the clpeak results later this evening.

 

Awaiting your comment..

;-) Erwin

file_tree.png

system_profiler.png

Link to comment
Share on other sites

Quote

At the moment Xcode is still downloading, so I will post the clpeak results later this evening.

 

Hmmm...

Xcode downloaded & installed... it was different than the previous time.. more hassle

and now clpeak errors out:

I tried to empty /tmp dir and reran the script, but same error..

 

macmini2:Desktop erwin$ sudo ./automate-eGPU.sh -clpeak
Downloading clpeak

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   124    0   124    0     0    143      0 --:--:-- --:--:-- --:--:--  1033
100  137k  100  137k    0     0  72296      0  0:00:01  0:00:01 --:--:--  424k
/Users/erwin/Desktop
Downloading cmake-3.3.0

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.3M  100 21.3M    0     0   570k      0  0:00:38  0:00:38 --:--:--  507k
/Users/erwin/Desktop
-- Setting build type to Release
-- Selected OpenCL includes from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenCL.framework
-- Selected OpenCL lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenCL.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Library/Application Support/Automate-eGPU/clpeak
[  8%] Building CXX object CMakeFiles/clpeak.dir/src/common.cpp.o
In file included from /tmp/clpeak-master/src/common.cpp:1:
/tmp/clpeak-master/src/include/common.h:5:14: fatal error: 'OpenCL/cl.hpp' file not found
    #include <OpenCL/cl.hpp>
             ^
1 error generated.
make[2]: *** [CMakeFiles/clpeak.dir/src/common.cpp.o] Error 1
make[1]: *** [CMakeFiles/clpeak.dir/all] Error 2
make: *** [all] Error 2
./automate-eGPU.sh: line 1053: /Library/Application Support/Automate-eGPU/clpeak/clpeak: No such file or directory
macmini2:Desktop erwin$ 

 

Link to comment
Share on other sites

2 hours ago, panini said:

 

  1. macmini2:Desktop erwin$ syslog -B -F '$Time $(Sender): $Message' | grep NVDA
    1. Feb 7 17:19:52 kernel: NVDAStartup: Web
      Feb 7 17:19:52 kernel: NVDAGM100HAL loaded and registered
      Feb 7 17:19:55 kernel: NVDA::rmStart failed
      Feb 7 17:19:55 kernel: NVDA,Display-B: Not usable
      Feb 7 17:19:55 kernel: NVDA,Display-C: Not usable
      Feb 7 17:19:55 kernel: NVDA,Display-D: Not usable
      Feb 7 17:19:55 kernel: NVDA,Display-E: Not usable
      Feb 7 17:19:55 kernel: NVDA,Display-F: Not usable

You may have a faulty eGPU or PSU.

 

@chrise had exactly the same issue.

 

https://www.techinferno.com/index.php?/forums/topic/7989-script-automating-the-installation-of-egpu-on-os-x-inc-display-output/&do=findComment&comment=130572

Edited by goalque
Link to comment
Share on other sites

35 minutes ago, goalque said:

Well.. I have a hard time believing that:

I rather believe I make a human error

  1. As said the Sonnet is the sole PSU to the eGPU - no other PSU's present
  2. The GTX650 Ti works..  with the said Sonnet PSU
  3. What I also suspect is maybe I'm using the wrong connection? (It has connectors A (DVI-*), C (DP), B (HDMI), D1 (DVI-*), D2 (2x DP)) see attached.

I will try to go out and buy another graphics card tomorrow, will test the GTX 960 in a x86 PC later but am confident it will work.

 

Questions:

  1. Do you have any advice to get clpeak to work?
  2. Do you have any recommendations about the maxwell card to buy?
    1. I will use it most for Autocad, Sketchup  and also a little bit on windows for Coolux Pandora's Box

Thanks a lot!

Do you have any Amazon or other gift shop list so I can buy you a beer for thanking you? ;-)

GV960G1_connections.png

Edited by panini
Link to comment
Share on other sites

@panini

@chrise said that it didn’t work on Windows either.

“Error code 43: This circumstance can occur if the device hardware fails or if the device driver fails.”

So this is very likely a hardware issue. Clpeak should work without an eGPU monitor. Have you installed Xcode command line tools?

 

My Nvidia cards are from Gigabyte & EVGA.

 

There is still something you can do: SMC and NVRAM reset,

https://support.apple.com/en-us/HT204063
https://support.apple.com/en-us/HT201295

 

I’m a beer lover but I’m not taking donations right now, thanks! :)

 

EDIT: Maybe the file /System/Library/Frameworks/OpenCL.framework/Headers/cl.hpp is missing?

Edited by goalque
Link to comment
Share on other sites

On 7 Feb 2016 at 10:41 PM, goalque said:

@panini

@chrise said that it didn’t work on Windows either.

“Error code 43: This circumstance can occur if the device hardware fails or if the device driver fails.”

So this is very likely a hardware issue. Clpeak should work without an eGPU monitor. Have you installed Xcode command line tools?

 

My Nvidia cards are from Gigabyte & EVGA.

 

There is still something you can do: SMC and NVRAM reset,

https://support.apple.com/en-us/HT204063
https://support.apple.com/en-us/HT201295

 

I’m a beer lover but I’m not taking donations right now, thanks! :)

 

EDIT: Maybe the file /System/Library/Frameworks/OpenCL.framework/Headers/cl.hpp is missing?

The continuing story...

Here's what I did:

  1. installed the GTX 960 in a desktop PC, only 6pin PSU connected.
  2. boot win7 (older system that needs updating) & updated driver
  3. reboot - displays would not come up - error in device management, but device was recognised as GTX 960
  4. reboot - after adjusting bios
  5. GTX 960 works 

Important:

  • Somewhere I figured the  GTX 960 needed more power and connected the extra 8pin PSU also
  • After that it all functioned
  • As a test:
    • powerdown down machine
    •  took off 8pin PSU connector
    • tried to reboot: system did not come up...

On the Sonnet / mac mini side:

  1. tried to boot once more with the extra PSU connected - no joy, same situation

Questions:

  1. I don't have bootcamp installed on the mini
  2. How do you test with windows? (on a mac mini)
  3. What specific Nvidia cards do you use (with the sonnet)? As I'm looking at buying another one.

Thanks for helping!

Link to comment
Share on other sites

1 minute ago, Dschijn said:

1. owwwwww

2. with 1.

 

Of course you need ALL power plugs to be connected to the GPU! All the time…

How is the Sonnet powered? With the Sonnet PSU?

6pin from the Sonnet PSU

8pin from external PC

 

I specifically asked before whether the  GTX 960 needs ALL power connections at all times...

 

 

Link to comment
Share on other sites

I have a really bad feeling about your setup and mixing that 6/8-Pin plugs from different power supplies.

 

Ok here is what I think. You got the Sonnet III-D, right? That huge Sonnet Case with beefy PSU.

The GTX 960 G1 needs 2x6-Pin PCIe plugs. You can try and get a 6-Pin PCIe splitter (y-cable) and make two out of that single 6-Pin.

With the Gigabyte card you made a rather unlucky choice since the G1 line can draw a LOT of power (peak loads). But it should still work.

Edited by Dschijn
Link to comment
Share on other sites

On 6 February 2016 at 5:12 PM, panini said:

1. Does the 6 pin connector of the III-D supply enough power for the 960?

I expected that your GTX 960 has only one 6-pin connector in which case the answer is yes. The power sockets of the GPU cannot be left unconnected, and you should never use two PSUs.

 

Anyhow, now we know the script still works on Yosemite too.

Link to comment
Share on other sites

5 hours ago, goalque said:

I expected that your GTX 960 has only one 6-pin connector in which case the answer is yes. The power sockets of the GPU cannot be left unconnected, and you should never use two PSUs.

 

Anyhow, now we know the script still works on Yosemite too.

@goalque

@Dschijn

Thanks for clarifying!

The 300W PSU of the III-D is what I bought it for in the first place!

I get your drift about two pus's.

I'll look into that, maybe for testing I can also power the Sonnet from my external PSU? I haven't even looked at it in the first place.

Has anybody done this before? Experiences?

 

Also @goalque @Dschijn what specific  Nvidia cards do you use???

I don't mind looking into buying a supplementary one, but would like it to work 'more easily' though ;-)

 

Thank you!

Link to comment
Share on other sites

Please first try and only use the 300W PSU of the Sonnet. Just split the power cable to the amount of plugs you need (from the one 6-Pin of the Sonnet to two 6-Pins).

Nobody tried to power the Sonnet with another PSU and especially with a GTX960 I don't see a reason why....

 

I am currently using a KFA2 GTX970 Gamer OC, also known under the brand Galax GTX970 Gamer OC.

 

Take a look at this builds:

https://www.techinferno.com/index.php?/forums/topic/7855-2012-mac-mini-gtx97010gbps-tb1-sonnet-iii-d-win81-eoiz/

https://www.techinferno.com/index.php?/forums/topic/6181-2014-15-macbook-pro-iris-gtx98016gbps-tb2-sonnet-iii-d-win81-mrhappypills/

Link to comment
Share on other sites

Hello

 

Help please! Im trying to make my setup work. I have an evga 980ti + akitio tb2 running on Macbook retina pro with OSX 10.9.5. 

I tried to run the script, I keep getting this message:

"Only Kepler architecture cards are supported on OS X 10.9.5."

 

I read a dew people having the same setup working on Osx 10.9.5. What I am doing wrong??

 

Thank you!

Link to comment
Share on other sites

44 minutes ago, sbuyukbas said:

Hello

 

Help please! Im trying to make my setup work. I have an evga 980ti + akitio tb2 running on Macbook retina pro with OSX 10.9.5. 

I tried to run the script, I keep getting this message:

"Only Kepler architecture cards are supported on OS X 10.9.5."

 

I read a dew people having the same setup working on Osx 10.9.5. What I am doing wrong??

 

Thank you!

You did nothing wrong. GTX 980 Ti requires at least OS X version 10.10.

Link to comment
Share on other sites

I've tried to setup a new "MSI GTX 970 GAMING 4G". The installation seems to be ok:

installer: Package name is NVIDIA Web Driver 346.03.05f01
installer: Installing at base path /
installer: The install was successful.
installer: The install requires restarting now.
Checking IOPCITunnelCompatible keys...

Missing IOPCITunnelCompatible keys.
IOPCITunnelCompatible mods done.
Add: ":IOKitPersonalities:AppleGraphicsDevicePolicy:ConfigMap:Mac-42FD25EABCABB274" Entry Already Exists
Board-id added.
All ready. Please restart the Mac.

-clpeak went wrong:

$ sudo ./automate-eGPU.sh -clpeak
Downloading cl.hpp

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file 
Warning: /System/Library/Frameworks/OpenCL.framework/Headers/cl.hpp: No such 
Warning: file or directory
curl: (23) Failed writing body (0 != 16384)
-- Setting build type to Release
-- Selected OpenCL includes from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenCL.framework
-- Selected OpenCL lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenCL.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Library/Application Support/Automate-eGPU/clpeak
[  8%] Building CXX object CMakeFiles/clpeak.dir/src/common.cpp.o
In file included from /tmp/clpeak-master/src/common.cpp:1:
/tmp/clpeak-master/src/include/common.h:5:14: fatal error: 'OpenCL/cl.hpp' file not found
    #include <OpenCL/cl.hpp>
             ^
1 error generated.
make[2]: *** [CMakeFiles/clpeak.dir/src/common.cpp.o] Error 1
make[1]: *** [CMakeFiles/clpeak.dir/all] Error 2
make: *** [all] Error 2
./automate-eGPU.sh: line 1053: /Library/Application Support/Automate-eGPU/clpeak/clpeak: No such file or directory

and when I try to render in Blender I get this:

$ ./blender.app/Contents/MacOS/blender 
ndof: 3Dx driver not found
Read new prefs: /Users/aivlap/Library/Application Support/Blender/2.76/config/userpref.blend
found bundled python: /Users/aivlap/Downloads/blender-2.76b-OSX_10.6-x86_64/blender.app/Contents/MacOS/../Resources/2.76/python
Device init success
Compiling OpenCL kernel ...
Build flags: 
OpenCL error (GeForce GTX 970): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (10007)
OpenCL error (GeForce GTX 970): OpenCL Warning : clBuildProgram failed: could not build program for 0x1022700 (GeForce GTX 970) (err:-2)
OpenCL error (GeForce GTX 970): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
Error getting function data from server

OpenCL kernel build output:
Error getting function data from server
OpenCL build failed: errors in console

Please help

Link to comment
Share on other sites

8 hours ago, aiv said:

 


$ sudo ./automate-eGPU.sh -clpeak
Downloading cl.hpp

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file 
Warning: /System/Library/Frameworks/OpenCL.framework/Headers/cl.hpp: No such 
Warning: file or directory
curl: (23) Failed writing body (0 != 16384)

 

There is a write error. I'm quite sure that you've enabled SIP. Keep it disabled.

 

Edited by goalque
Link to comment
Share on other sites

There is one problem: I'm not able to set the native 5k resolution in my iMac - the maximum available option is 4k. Even when I unplug the egpu, set in Graphics Drivers menu the option  "OS X Default Graphics Driver" and restart the system. How can I fix that?

Link to comment
Share on other sites

1 hour ago, aiv said:

well @chrise is exactly in the same situation, his internal screen is downscaled to 4k. Actually I do not wont accelerate any games, just use the CUDA computing power for rendering.

Ok, but the system_profiler says “Resolution: 5120 x 2880 Retina”?

 

- I guess it’s always the maximum resolution. Can you see that resolution available in SwitchResX or DisableMonitor app?

- Is it selectable after your uninstall the script and restart the Mac?

 

Maybe I have to add an option that the script doesn’t change graphics policy if the user wants to run only GPGPU applications.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.