mirror of
https://github.com/GOSTSec/ccminer
synced 2025-02-08 12:54:19 +00:00
nvml: vid/pid was reversed
This commit is contained in:
parent
e2ac7a2a75
commit
f42bb85785
4
nvml.cpp
4
nvml.cpp
@ -330,8 +330,8 @@ int wrap_nvml_get_info(wrap_nvml_handle *nvmlh, int cudaindex, uint16_t *vid, ui
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
subids = nvmlh->nvml_pci_subsys_id[gpuindex];
|
subids = nvmlh->nvml_pci_subsys_id[gpuindex];
|
||||||
(*vid) = subids >> 16;
|
(*pid) = subids >> 16;
|
||||||
(*pid) = subids & 0xFFFF;
|
(*vid) = subids & 0xFFFF;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user