cuda.bindings.nvml.device_set_api_restriction#
- cuda.bindings.nvml.device_set_api_restriction(
- intptr_t device,
- int api_type,
- int is_restricted,
Changes the root/admin restructions on certain APIs. See
nvmlRestrictedAPI_tfor the list of supported APIs. This method can be used by a root/admin user to give non-root/admin access to certain otherwise-restricted APIs. The new setting lasts for the lifetime of the NVIDIA driver; it is not persistent. SeenvmlDeviceGetAPIRestrictionto query the current restriction settings.- Parameters:
device (intptr_t) – The identifier of the target device.
api_type (RestrictedAPI) – Target API type for this operation.
is_restricted (EnableState) – The target restriction.
See also
nvmlDeviceSetAPIRestriction