[SCRIPT] Accelerate All Applications On eGPU - macOS 10.13.4+
 
Notifications
Clear all

[SCRIPT] Accelerate All Applications On eGPU - macOS 10.13.4+  

 of  14
  RSS

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

This is another nice effort. It sure works with some apps. However lots of apps are not identified (for instance Cinema 4D). In my case the script disabled one of my internal GPU's and one of my external ones. It seems to allow only 2 GPU's at a time. My MacPro 2013, with 2AMD's and 2 External NV 1080 GTX, only uses one of each. Agisoft Photoscan, which can use all available hardware, after the script is only able to "see" the external GPUs. Internal ones disappear from the list. Maybe it's an "easy to solve" problem.

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

.

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

@rhenriques11 thank you for the report Smile At the end of the day, these settings are Apple’s official methods of “preferring” GPUs for apps. So you might likely see this change a lot (in Mojave, like in their demo showing multiple eGPUs) over macOS updates. The script only automates the process of setting the pref for all apps that it finds. Could you post apps that the script could not find? Note that some apps may simply never use egpu even with this setting, but the app has been detected. This is just the first release. While this project is low priority on my list of things to do, I will refine it over time ;).

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


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

@detunedradios I noticed this as well. It would seem the option is inappropriately named preferRemovable. A preference should only apply if it is available (egpu connected) haha. Example, I tried setting this preference to Activity Monitor - guess what, all other GPUs disappeared besides egpu (lol).

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


ReplyQuote
rhenriques11
(@rhenriques11)
Eminent Member
Joined: 2 years ago
 
Posted by: mac_editor

@detunedradios I noticed this as well. It would seem the option is inappropriately named preferRemovable. A preference should only apply if it is available (egpu connected) haha. Example, I tried setting this preference to Activity Monitor - guess what, all other GPUs disappeared besides egpu (lol).

That's precisely what I'm seeing in most apps. Internal GPU's disappear and only the external ones are identified. In rare occasions, one of each gets active.

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

.

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

it's great for fcpx rendering. thanks! mac_editor

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

.

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

If anyone else wants a silly AppleScript to toggle this for FCPX:

display dialog "Is your eGPU connected?" buttons {"Yes", "No"} with title "FCPX eGPU Enabler"
if the button returned of the result is "Yes" then
do shell script "defaults write -app \"Final Cut Pro\" GPUSelectionPolicy -string preferRemovable"
display dialog "eGPU acceleration for Final Cut Pro has been enabled." buttons {"OK"}
else
do shell script "defaults delete -app \"Final Cut Pro\" GPUSelectionPolicy"
display dialog "eGPU acceleration for Final Cut Pro has been disabled." buttons {"OK"}
end if

2016 15" MacBook Pro - 2.7GHz Core i7, Radeon Pro 460 4GB, 1TB SSD
Sonnet Breakaway Box 350, modded with 650W PSU, with Radeon RX Vega 64


ReplyQuote
Gilles Goetsch
(@ealchemist)
Active Member
Joined: 2 years ago
 

This. Is. Awesome.

Will test FCP utilisation using an external Ultrafine 5k on a MacBook soon.
As it seems to utilise on an internal, an external Monitor (connected to the dGPU) should also work, right?

Very exiting. I'll report back.

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

.

ReplyQuote
Riss
 Riss
(@riss)
Eminent Member
Joined: 3 years ago
 

Tested successfully on Mac mini 2012 with Quadro P2000 and Capture One 10 and 11, Nvidia drivers 387.10.10.10.30.107 and macOS 10.13.5

I did a very quick&dirty testing and can confirm that the script indeed forces eGPU to do part of the OpenCL calculations and helps with rendering raw files during editing. My monitor is connected to eGPU. I tried without headless HDMI and with but haven't noticed any difference.

Screen Shot 2018 07 01 at 8.47.30 PM

Unfortunately, but here I blame Phase One and their processing engine on macOS, exporting final pictures as .jpgs is still processed on CPU and not eGPU. When I tested my eGPU setup on Win10 exporting was offloaded to eGPU and nearly halved the time.

Still, this is a very good progress and really appreciate the effort! Will try next on MBP 15" mid 2014 with GT750M

mid 2014 MBP 15" GT750m | Mac mini 2012 | Akitio Thunder 2 & 3 | GTX 780 3GB (flashed) | GTX Black Titan 6GB (stock) | Quadro P2000 (stock)


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

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

@goalque Yea, saw the YT video. The GPUEjectPolicy can also be set via same command line technique.

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


goalque liked
ReplyQuote
 of  14