ok i figured out how to script the AMDMemoryTweak settings. For anyone else trying to figure this out you need to do the following (This is for Windows):
- Download and install the AMDMemoryTweak code from here:
https://github.com/Eliovp/amdmemorytweak- Download Visual Studio with c++ for Windows 10 desktop (it's free on the Microsoft Visual Studio site)
- Go into the folder where you unzipped AMDMemoryTweak and navigate down into the "win" sub-folder
- double-click on the file with the extension "vcproj" and it will open in Visual Studio
- in the top right corner of the Visual Studio Screen right-click on the name of the project (top level name in the tree) and select "BUILD" from the menu -- this will output a file into the debug directory called "WinAMDTweak.exe"
- copy that file out of the debug folder and up one level into the WIN folder so it is in the same directory of the EIO.dll which is required.
Now you are ready to create your batch file:
- create a new text file in this directory, name it something like "START-AMDMemoryTweak" and then rename the file extension to .bat to make it a batch file
- I personally have qty 8 of Vega64 cards in my rig with HBM2 memory so this is what i put into that batch file:
--- (do not include these dashes in your file) ---
C:\amdmemorytweaker\win\WinAMDTweak.exe --i 0,1,2,3,4,5,6,7 --CL 22 --RAS 35 --RCDRD 16 --RCDWR 12 --RCAB 44 --RCPB 44 --RPAB 14 --RPPB 14 --RRDS 3 --RRDL 5 --RTP 5 --FAW 20 --CWL 7 --WTRS 4 --WTRL 9 --WR 16 --RREFD 8 --RDRDDD 3 --RDRDSD 2 --RDRDSC 1 --RDRDSCL 3 --WRWRDD 3 --WRWRSD 2 --WRWRSC 1 --WRWRSCL 3 --WRRD 1 --RDWR 19 --REF 17550 --MRD 8 --MOD 15 --XS 270 --XSMRS 8 --PD 8 --CKSRE 10 --CKSRX 10 --RFCPB 160 --STAG 7 --XP 8 --CPDED 2 --CKE 8 --RDDATA 19 --WRLAT 5 --RDLAT 14 --WRDATA 1 --CKESTAG 2 --RFC 247 --TIMING 0 --ZERORPM False --TDPLIMIT 0 --MAXTEMP 85
pause
--- (do not include these dashes in your file) ---
This will set all the tweak settings on all 8 Vega 64 cards (just change the --i settings in the script above to include the number of cards you have) -- with one exception, it does not set the the core clock, core voltage, memory frequency and memory voltage. I have not figured out what the correct flags are to set in the START-AMDMemoryTweak.bat file yet as I do not see those flags listed in the AMDMemoryTweak documentation.
So for now, i am setting those core and memory voltage settings in the Phoenix Miner startup script as follows (I've named my batch script "START-PheonixMiner.bat":
--- (do not include these dashes in your file) ---
REM
REM Example bat file for starting PhoenixMiner.exe to mine ETH
REM
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
REM IMPORTANT: Replace the ETH address with your own ETH wallet address in the -wal option (Rig001 is the name of the rig)
"C:\PATH TO PHEONIX MINER\PhoenixMiner.exe" -pool ssl://us2.ethermine.org:5555 -pool2 ssl://us1.ethermine.org:5555 -wal YOUR-WALLET-ADDRESS-HERE.NAME-OF-YOUR-RIG-HERE -proto 3 -cclock 1100 -cvddc 900 -mclock 1100 -mvddc 900 -fanmin 80 -amd -rxboost 20 -mt 2
pause
--- (do not include these dashes in your file) ---
Once you have these scripts you can create Scheduled tasks that fire them off at boot up time.
If anyone knows how to set the core and memory voltage in the START-AMDMemoryTweak.bat i'd be very appreciative if you shared - thank you!