Exemple #1
0
        public static void NvmlDeviceSetComputeMode(IntPtr device, NvmlComputeMode mode)
        {
            var res = Api.NvmlDeviceSetComputeMode(device, mode);

            if (NvmlReturn.NVML_SUCCESS != res)
            {
                throw new SystemException(res.ToString());
            }
        }
Exemple #2
0
 internal static extern NvmlReturn nvmlDeviceGetComputeMode(IntPtr device, out NvmlComputeMode mode);
Exemple #3
0
 internal static extern NvmlReturn NvmlDeviceSetComputeMode(IntPtr device, NvmlComputeMode mode);
Exemple #4
0
 public static extern NvmlReturn NvmlDeviceGetComputeMode(
     NvmlDevice device, out NvmlComputeMode mode);