Author

Topic: AMD Compute 'n Stability Script v2.0 - Compute Mode ON/OFF (Read 474 times)

newbie
Activity: 3
Merit: 0
Worked great for me, although I wish it was a little easier run like an .exe. Put everything in Compute mode and turnedoff CF/ULPS. no virus was detected by Bitdefener. It gets my Seal of approval.

Thanks for the review @Xazax310 - I opted for the "script" version as everyone can look at what the scripts do before running them. I'm sure there's an easier way to have that benefit while automating the script, but I just don't have the time/expertise to do it. I've very open to comments and feedback to improve the script Smiley
member
Activity: 246
Merit: 24
watching the details...
if someone else will use it, i will use it...

Worked great for me, although I wish it was a little easier run like an .exe. Put everything in Compute mode and turnedoff CF/ULPS. no virus was detected by Bitdefener. It gets my Seal of approval.
hero member
Activity: 2170
Merit: 612
Online Security & Investment Corporation
watching the details...
if someone else will use it, i will use it...
member
Activity: 246
Merit: 24
Downloading going to give it a whirl on my RX580 13 GPU rigs, They've been extremely stable but I do have one that seems to BSOD with driver errors every couple days. See if this fixes that.
newbie
Activity: 3
Merit: 0
Original post at https://anorak.tech/community/t/amd-compute-n-stability-script-v2-0/89066

Mining performance & stability boost for mining on the Windows OS with AMD video cards.

Quote
For all your installed AMD cards, it only takes a couple seconds to:
- Automatically switch Compute Mode on = More power!
- Automatically turn ULPS + CFAL off = More stability!

Disclaimer:  Needless to say, always check the content of a script you want to run on your computer BEFORE running it. I'm not responsible for any issue(s) that would arise from using this script.

In more details, these 2 scripts will toggle 3 AMD registry settings on/off:
-
* KMD_EnableInternalLargePage should be ENABLED for mining (compute mode "on").
* EnableUlps should be DISABLED for mining (adds stability).
* EnableCrossFireAutoLink should be DISABLED for mining (adds stability).

Download link(s):
-
https://drive.google.com/drive/folders/1uEWXhTEvDUIOhsxoXu51hi5-UOplMSjT?usp=sharing

v2.0 Changes - April 2nd, 2018
-
* Ability to see the current status of each setting for each card before changing anything.
* Separated the Compute Mode script from the Stability Tweaks. Each script can now be run on its own.
* Reworked the logic - won't try to change anything if the settings are already correct.
* Added the total number of registry changes made after each script run.
* Added the total number of registry changes who were successful.
* Added the total number of registry changes who failed.
* Tells you if you need to restart your computer for changes to be applied.
* Changed some text color to be more user-friendly for those running the script directly from PowerShell.

Features:
-
* Blazing fast; only takes a couple seconds, even on a Celeron system with 19 GPUs
* Loops through all your GPUs (no limits to the number of installed GPUs)
* Lets you choose between: Optimize for mining (or) Reset registry settings (or) List current settings
* Skips GPU entries that are not from AMD, but lists them
* Displays the changes it makes for each GPU
* Gives an error message if some changes cannot be made
* Lists the total number of GPU it found, and how many were AMD

Quick-n-dirty how to:
-
    # 1. Unzip the files to a folder
    # 2. Open a command prompt as Administrator (right click on Command Prompt shortcut icon)
    # or search for it:

    WINDOWS KEY + (S)earch
    type "command" in the search field
            ^ right-click the Command Prompt icon, select "Run as administrator"

    # 3. Once inside the command prompt, type
Code:
powershell

    # and press ENTER.
    # Note: This will move you into PS mode.

    # 4. Once in PS mode, type
Code:
powershell -ExecutionPolicy Unrestricted

    # Note: This will give you the rights to run both ps1 scripts with no errors.

    # 5. Type this to run COMPUTE script
Code:
powershell -noexit 'C:\Users\UserName\Path` to` Script\AMD-Compute-n-Stability-Script\compute.ps1'
    # or type this to run STABILITY script
Code:
powershell -noexit 'C:\Users\UserName\Path` to` Script\AMD-Compute-n-Stability-Script\stability.ps1'

    # Note: You can see I added a ` before each space in the path. You will need to
    # add a ` before every space in your path for this to work. PowerShell cannot
    # have spaces in a path. e.g.

    # wrong way to define a path with spaces in folder name
Code:
powershell -noexit 'C:\Users\John\Appleseed\my folder spaces\downloads\script.ps1'

    # correct way to define a path with spaces in folder name
Code:
powershell -noexit 'C:\Users\John\Appleseed\my` folder` spaces\downloads\script.ps1'

    # 6. Follow the easy instructions from the scripts Smiley

Credits:
-
* Original script by [lordpurvis](https://www.reddit.com/user/lordpurvis), found on [this Reddit thread](https://www.reddit.com/r/gpumining/comments/7uuw5f/automatically_setting_amd_cards_from_graphics_to/)
* Modified by phila82r (https://twitter.com/phila82r)

Additional information
-
ULPS: ULPS means Ultra Low Power State. It is a feature of AMD GPUs which are in a multi-GPU CrossFire configuration. Essentially, when enabled, it turns off the second GPU when it isn't in use. This feature sometimes causes problems with games and overclocking, and there are some cases when it does cause a slow boot.

CFAL: CFAL means CrossFire Auto Link. Whenever Windows starts, the AMD driver tries to detect other AMD cards to establish "crossfire". We don't want crossfire for mining and even searching for it is not good for driver stability.  We also don't want it polling to see about power states when your mining.

If you'd like to show your support and appreciation, you can do so by sending donations to phila82r:
Code:
ETH: 0xf7c0737a32ad2b971e74478D61B0Ed193097Cf82
Code:
BTC: 3QCQUwtJNgYi7StM6mBZi773jzdb28GEvB
Code:
LTC: MJrPidBwzekzSopAmSqxcbtbP2TscG2Zp7

ENJOY!
Jump to: