GithubHelp home page GithubHelp logo

tonyle9 / set-egpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mayankk2308/set-egpu

0.0 1.0 0.0 583 KB

Display-agnostic acceleration of macOS applications using external GPUs.

License: MIT License

Shell 100.00%

set-egpu's Introduction

Header

macOS Support Github All Releases paypal

Set-eGPU

Allows you to set graphics preferences for macOS applications, and force use of external GPUs, even on internal displays.

Requirements

This script requires the following specifications:

  • Mac running external GPU
  • macOS 10.13.4 or later

Usage

Install set-eGPU.sh:

curl -s "https://api.github.com/repos/mayankk2308/set-egpu/releases/latest" | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/' | xargs curl -L -s -0 > set-eGPU.sh && chmod +x set-eGPU.sh && ./set-eGPU.sh && rm set-eGPU.sh

This will automatically install the latest version of set-eGPU.sh. Administrative privileges are required only for installation and software updates. All other script activity is performed in a user-privileged shell automatically.

Alternatively, download set-eGPU.sh. Then run the following in Terminal:

cd Downloads
chmod +x set-eGPU.sh
./set-eGPU.sh

On first-time use, the script will auto-install itself as a binary into /usr/local/bin/. This enables much simpler future use. To use the script again, just type the following in Terminal:

set-eGPU

It is worth noting that macOS Mojave uses a completely different and more potent mechanism for setting eGPU application preference, but is in beta stage. This script completely supports that mechanism, but due to Mojave being in beta, the underlying mechanism has bugs and other issues.

Options

Set-eGPU makes it super-easy to perform actions with an interactive menu, and is recommended for most users. Providing no arguments to the script defaults to the menu.

Set-eGPU Menu

For advanced users that may sometimes prefer bypassing the menu, the script provides convenient arguments in an attempt to be as user-friendly as possible.

1. Set eGPU Preference for All Applications (-sa|--set-all)

Checks all available applications and sets their GPU preference to use eGPUs.

2. Set eGPU Preference for Specified Application(s) (-ss|--set-specified)

Checks specified application(s) and sets its GPU preference to use eGPUs.

3. Check Application eGPU Preference (-c|--check)

Reads specified application(s) GPU preferences.

4. Reset GPU Preferences for All Applications (-ra|--reset-all)

Resets GPU preferences to system defaults for all applications.

5. Reset GPU Preferences for Specified Application(s) (-rs|--reset-specified)

Recover original untouched macOS configuration prior to script modifications.

Testing

Run your application and check Activity Monitor > Window > GPU History (⌘ + 4) for GPU statistics.

Image

License

See the license file for more information.

Donate

A thank you suffices, but for those kind souls who would love to contribute:

paypal

set-egpu's People

Contributors

mayankk2308 avatar

Watchers

Hung Le  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.