mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Make sure we do not attempt to adl manage devices we have explicitly disabled.
This commit is contained in:
parent
7c26948e45
commit
5b40f9795b
10
main.c
10
main.c
@ -5299,6 +5299,16 @@ int main (int argc, char *argv[])
|
||||
for (i = 0; i < MAX_GPUDEVICES; i++)
|
||||
if (gpu_devices[i] && i + 1 > nDevs)
|
||||
quit (1, "Command line options set a device that doesn't exist");
|
||||
for (i = 0; i < nDevs; i++) {
|
||||
/* Make sure we do not attempt to adl manage devices
|
||||
* that we disable */
|
||||
if (!gpu_devices[i])
|
||||
gpus[i].gpu_engine =
|
||||
gpus[i].gpu_memclock =
|
||||
gpus[i].gpu_vddc =
|
||||
gpus[i].gpu_fan =
|
||||
gpus[i].gpu_powertune = 0;
|
||||
}
|
||||
} else {
|
||||
for (i = 0; i < nDevs; i++)
|
||||
gpu_devices[i] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user