Example #1
0
        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);
        }
Example #2
0
 internal static extern NvmlReturn NvmlDeviceGetAPIRestriction(IntPtr device, NvmlRestrictedAPI apiType, out NvmlEnableState isRestricted);
Example #3
0
 public static extern NvmlReturn NvmlDeviceGetAPIRestriction(
     NvmlDevice device, NvmlRestrictedAPI apiType, out NvmlEnableState isRestricted);