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

OpenCL backend problems #2630

Closed
ppllgg42 opened this issue Oct 14, 2021 · 4 comments
Closed

OpenCL backend problems #2630

ppllgg42 opened this issue Oct 14, 2021 · 4 comments

Comments

@ppllgg42
Copy link

Hi,

I have 3 gpus, however I want to run XMRig on just one of them, specifically gpu #2. When I go to pass the OpenCL devices argument in the command line,
$ sudo ./xmrig --opencl-devices=2
XMRig still uses all 3 of my gpus. Using v6.15.2 on Ubuntu.

Am I passing this argument incorrectly? How do I select a single gpu?

Thanks

@Spudz76
Copy link
Contributor

Spudz76 commented Oct 14, 2021

If you already have a config.json with definitions in it, command line args don't override it. The commandline options are hints to the autoconfigurator, which doesn't run again unless there are no definitions.

You have to delete the opencl algo configurations, then use the commandline option to select just the one. Or just go in and delete the other two indexes out of every algo definition.

@Spudz76
Copy link
Contributor

Spudz76 commented Oct 14, 2021

Also reasonably sure that option is numbered from zero. So =2 is the third GPU...

@ppllgg42
Copy link
Author

Awesome, I see that I benchmarked with 3 gpus and have indices for each in config.json. I'll get rid of the ones I don't need, thanks for the help!

@LinuxHeki
Copy link

I think you can close the issue now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants