Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amdmemtweak and Amd OC Profile #976

Open
ArSd-g opened this issue May 5, 2020 · 6 comments
Open

Amdmemtweak and Amd OC Profile #976

ArSd-g opened this issue May 5, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@ArSd-g
Copy link

ArSd-g commented May 5, 2020

Hello, please push the ability to control amd OC in linux (rocm-smi, or the best: amdgpu-clocks) and 'amdmemtweak' to apply/reset amd timings straps when miner/algo start/end.
Assuming timings strap is often algos spécific i cant load same timings/oc when RBM start for all algos.

@ArSd-g
Copy link
Author

ArSd-g commented May 5, 2020

i tried few hacks on your soft :D: added "& sudo ./amdmemtweak..." to miner parameter on ETH!
Seems to pass custom timings ok but teamredminer not starting with error due to "background" fonction of "&" very frustrating because i can't reorder commands 1 (trm) and 2 (timings) and i can't use ";" fonction PLEASE FIX This:
[2020-05-05 09:23:03] INFO: Could not request from 127.0.0.1:40900
[2020-05-05 09:23:03] INFO: Failed to connect to miner (Teamred-GPU#00-GPU#01-GPU#02-GPU#03).

@RainbowMiner
Copy link
Owner

Since I have a bit of a testing problem (I do not have any AMD GPUs, anymore), could you eventually supply me with the necessary parameters for those tools? It should be no problem to implement the OC into Rainbowminer, then.

@RainbowMiner RainbowMiner self-assigned this May 5, 2020
@RainbowMiner RainbowMiner added the enhancement New feature or request label May 5, 2020
@ArSd-g ArSd-g changed the title Amdmemtweak and Amd OC Profile label:enhancement Amdmemtweak and Amd OC Profile May 5, 2020
@ArSd-g
Copy link
Author

ArSd-g commented May 5, 2020

1: AmdGPU OC (amdgpu-clocks)
https://github.com/sibradzic/amdgpu-clocks
Works very similar as your built in OC profile; with oc profiles files; only 1 call to symlinked "sudo amdgpu-clocks' will load all *profile.card.1 ..2..3. in etc/default/ with the possibility to load particular files by name for each cards.see readme
.
2: Amdmemtweak (cli):
https://github.com/Eliovp/amdmemorytweak/blob/master/README.md
Solution 1: fully implement this tool in RBM
Solution 2: Give us the ability to run script/command before each miner starts and when it stops or switch.
SOLUTION 2 IS THE BEST! for externals scripts as it not sticks only to "amdmemtweak"

I Can assit you for testing

@ArSd-g
Copy link
Author

ArSd-g commented May 5, 2020

Also i'm trying to completely get rid of rocm-smi but i need it for --gpureset only, What thé correct way to "reset Vega" i cant find it in your code.what command do you use if i want to reproduce in a watchdog script for exemple

@ArSd-g
Copy link
Author

ArSd-g commented May 8, 2020

SOLUTION 3: make OC-Profiles works for AMD, you might use wolfamdctrl tool already, to force P-States and get GPU info i think...amdgpu-clocks tool do all of this efficiently and very easy!
Not sure to understand what you want (sorry my english is rusty :D) but for both of this tools a simple: "git clone + chmod +x" do the tricks, for amdgpu-clocks; 1 more thing is required: symlink the .sh file and create and modify OC profiles files in /etc/default or give an absolut path to access them

@ArSd-g
Copy link
Author

ArSd-g commented May 15, 2020

Don't see anything about this since i asked...any news?

RainbowMiner added a commit that referenced this issue Oct 7, 2020
- add pre and post commands to ocprofiles.config.txt (issue #1205 #976 #1137)
  - "PreCmd"/"PreCmdArguments": define a command to be executed before the miner starts. PreCmd is the path to the binary, PreCmdArguments are optional arguments for that command.
  - "PostCmd"/"PostCmdArguments": define a command to be executed after the miner has finished. PostCmd is the path to the binary, PostCmdArguments are optional arguments for that command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants