public static void NvmlDeviceSetComputeMode(IntPtr device, NvmlComputeMode mode) { var res = Api.NvmlDeviceSetComputeMode(device, mode); if (NvmlReturn.NVML_SUCCESS != res) { throw new SystemException(res.ToString()); } }
internal static extern NvmlReturn nvmlDeviceGetComputeMode(IntPtr device, out NvmlComputeMode mode);
internal static extern NvmlReturn NvmlDeviceSetComputeMode(IntPtr device, NvmlComputeMode mode);
public static extern NvmlReturn NvmlDeviceGetComputeMode( NvmlDevice device, out NvmlComputeMode mode);