From f42bb857851b71c89f0b5c295a3a58948fbed35f Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sun, 23 Nov 2014 11:17:52 +0100 Subject: [PATCH] nvml: vid/pid was reversed --- nvml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvml.cpp b/nvml.cpp index c44f75e..9a5888f 100644 --- a/nvml.cpp +++ b/nvml.cpp @@ -330,8 +330,8 @@ int wrap_nvml_get_info(wrap_nvml_handle *nvmlh, int cudaindex, uint16_t *vid, ui return -1; subids = nvmlh->nvml_pci_subsys_id[gpuindex]; - (*vid) = subids >> 16; - (*pid) = subids & 0xFFFF; + (*pid) = subids >> 16; + (*vid) = subids & 0xFFFF; return 0; }