Esempio n. 1
0
        public static NvmlPciInfo NvmlDeviceGetPciInfoV3(IntPtr device)
        {
            NvmlPciInfo data = new NvmlPciInfo();
            NvmlReturn  res  = Api.NvmlDeviceGetPciInfo_v3(device, out data);

            if (NvmlReturn.NVML_SUCCESS != res)
            {
                throw new SystemException(res.ToString());
            }

            return(data);
        }
Esempio n. 2
0
 internal static extern NvmlReturn NvmlDeviceGetPciInfo_v3(IntPtr device, out NvmlPciInfo pci);