public static NvmlEnableState NvmlDeviceGetAPIRestriction(IntPtr device, NvmlRestrictedAPI apiType) { NvmlEnableState state; NvmlReturn res; res = Api.NvmlDeviceGetAPIRestriction(device, apiType, out state); if (NvmlReturn.NVML_SUCCESS != res) { throw new SystemException(res.ToString()); } return(state); }
internal static extern NvmlReturn NvmlDeviceGetAPIRestriction(IntPtr device, NvmlRestrictedAPI apiType, out NvmlEnableState isRestricted);
public static extern NvmlReturn NvmlDeviceGetAPIRestriction( NvmlDevice device, NvmlRestrictedAPI apiType, out NvmlEnableState isRestricted);