Search content
Sort by

Showing 4 of 4 results by Paedy
Post
Topic
Board Mining (Altcoins)
Merits 2 from 1 user
Re: [Tool] AMD-Compute-Switcher for switch automatically to compute mode
by
Paedy
on 25/01/2018, 16:15:53 UTC
⭐ Merited by xandry (2)
executables with no source.

Yea you are right. But when I started I wanted to create a much bigger software as it is now.
I planned some features for the future so this is not the final version  Cool

Source code from 1.0.0:
Code:
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace AMD_Compute_Switcher
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            RegistryKey localMachineKey = Registry.LocalMachine;
            RegistryKey softwareKey = localMachineKey.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Class\\{4d36e968-e325-11ce-bfc1-08002be10318}");
            var cardFolders = softwareKey.GetSubKeyNames();
            Dictionary results = new Dictionary();
            int notComputeMode = 0;
            int tmp;

            foreach (var cardFolder in cardFolders)
                if (int.TryParse(cardFolder, out tmp))
                {
                    RegistryKey cardRegistry = null;
                    try
                    {
                        cardRegistry = softwareKey.OpenSubKey(cardFolder);
                    }
                    catch (Exception) { }
                    if (cardRegistry != null)
                    {
                        var KMD_EnableInternalLargePage = cardRegistry.GetValue("KMD_EnableInternalLargePage");
                        if (KMD_EnableInternalLargePage == null || KMD_EnableInternalLargePage.ToString() != "2")
                        {
                            notComputeMode++;
                            results.Add(cardFolder, "Not in compute mode");
                        }
                        else
                        {
                            results.Add(cardFolder, "Compute mode");
                        }
                    }
                }

            var cardString = "All cards will be switched to " + (notComputeMode > 0 ? "compute" : "graphics") + " mode!\n";
            foreach (var result in results)
            {
                cardString += "\n" + result.Key + ": " + result.Value;
            }

            if (MessageBox.Show(cardString, "Do you want to switch?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.OK)
            {
                results = new Dictionary();

                foreach (var cardFolder in cardFolders)
                    if (int.TryParse(cardFolder, out tmp))
                    {
                        RegistryKey cardRegistry = null;
                        try
                        {
                            cardRegistry = softwareKey.OpenSubKey(cardFolder, true);
                        }
                        catch (Exception) { }
                        if (cardRegistry != null)
                        {
                            if (notComputeMode > 0)
                            {
                                /** Switch all to compute mode */
                                try { cardRegistry.SetValue("KMD_EnableInternalLargePage", "2", RegistryValueKind.DWord); results.Add(cardFolder, "Success"); }
                                catch(Exception ex) { results.Add(cardFolder, "Error: " + ex.Message); }
                            }
                            else
                            {
                                /** Switch all to graphics mode */
                                try { cardRegistry.DeleteValue("KMD_EnableInternalLargePage"); results.Add(cardFolder, "Success"); }
                                catch (Exception ex) { results.Add(cardFolder, "Error: " + ex.Message); }
                            }
                        }
                    }
               
                cardString = "Switched successfully to " + (notComputeMode > 0 ? "compute" : "graphics") + " mode!\n";
                foreach (var result in results)
                {
                    cardString += "\n" + result.Key + ": " + result.Value;
                }

                MessageBox.Show(cardString, "Switched successfully!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }
}
Post
Topic
Board Mining (Altcoins)
Re: [Tool] AMD-Compute-Switcher for switch automatically to compute mode
by
Paedy
on 24/01/2018, 22:38:54 UTC
yeah I like to grab this as well but I don't wanna sign up just to download 1 file from a place ill prolly never use again

Sorry VirusTotal was only the document where you can see that there is no virus on it.


The forum here removed the link.
I added the mega.nz link now: https://mega.nz/#!Qgl3EYxJ!_7Aes-JHrnhGpIl2v_3EwG6E_jAsV_gjyj-Eg3IFGkY
Post
Topic
Board Mining (Altcoins)
Re: Crimson Relive Win 10 Drivers Now Support 12 AMD GPU's with Compute Workloads
by
Paedy
on 24/01/2018, 12:22:48 UTC
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"KMD_EnableInternalLargePage"=dword:00000002

And for 0001, 0002, etc.

I created a simple tool for made this easier  Cool
https://bitcointalk.org/index.php?topic=2815803.0

If you have updates for it please inform me  Wink
Post
Topic
Board Mining (Altcoins)
Merits 12 from 5 users
[Tool] AMD-Compute-Switcher for switch automatically to compute mode
by
Paedy
on 24/01/2018, 12:10:09 UTC
⭐ Merited by deadsix (5) ,kisk (4) ,xxcsu (1) ,tg88 (1) ,bokiminer (1)
AMD-Compute-Switcher helps you to easily switch between compute and graphics mode.
It loops all registry folders of your AMD software and detects if the card is in graphics or compute mode.
If one is not in compute mode it will try to switch all to compute mode and if all are in compute mode it allows you to go back to graphics mode.

Download: https://mega.nz/#!Qgl3EYxJ!_7Aes-JHrnhGpIl2v_3EwG6E_jAsV_gjyj-Eg3IFGkY (VirusTotal)

Compatible with AMD Crimson software. (17.10.2 and higher because before there is no compute option or you can use blockchain driver instead)

Getting started:
  • Run AMD-Compute-Switcher.exe
  • Read the message, on top you see "switch to compute mode" or "switch to graphics mode". Press OK if you see "switch to compute mode. - this happens if one card is not in compute mode.
  • Reboot

Changelog:
  • 1.0.0: First release with simple switch

Special thanks to this post because I'm using this logic.
https://bitcointalk.org/index.php?topic=2312585.msg23637946#msg23637946

If you have any improvements you can post them here or send me a private message.