Ejemplo n.º 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());
            }
        }
Ejemplo n.º 2
0
 internal static extern NvmlReturn nvmlDeviceGetComputeMode(IntPtr device, out NvmlComputeMode mode);
Ejemplo n.º 3
0
 internal static extern NvmlReturn NvmlDeviceSetComputeMode(IntPtr device, NvmlComputeMode mode);
Ejemplo n.º 4
0
 public static extern NvmlReturn NvmlDeviceGetComputeMode(
     NvmlDevice device, out NvmlComputeMode mode);