Bitcoin Forum
June 22, 2024, 06:09:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: AMD Compute 'n Stability Script v2.0 - Compute Mode ON/OFF  (Read 457 times)
bullzard (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 23, 2018, 05:02:03 PM
 #1

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!
Xazax310
Member
**
Offline Offline

Activity: 246
Merit: 24


View Profile
June 23, 2018, 05:50:24 PM
 #2

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.
igotek
Hero Member
*****
Offline Offline

Activity: 2072
Merit: 608


Online Security & Investment Corporation


View Profile WWW
June 23, 2018, 06:53:08 PM
 #3

watching the details...
if someone else will use it, i will use it...

I cannot live, I cannot die, trapped in myself.
Hold my breath as I wish for death. Oh please god, help me !
Xazax310
Member
**
Offline Offline

Activity: 246
Merit: 24


View Profile
June 23, 2018, 07:27:18 PM
 #4

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.
bullzard (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 25, 2018, 02:02:44 AM
 #5

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!