Linux repositories inspector


Version 1.1
28 Jul 2019
Aliases: nvmlUnitSetLedState(3), nvmlUnitSetLedState(3)


NVIDIA CUDA development files


NVIDIA's GPU programming toolkit


Unit Commands -


nvmlReturn_t DECLDIR nvmlUnitSetLedState (nvmlUnit_t unit, nvmlLedColor_t color)

Detailed Description

This chapter describes NVML operations that change the state of the unit. For S-class products. Each of these requires root/admin access. Non-admin users will see an NVML_ERROR_NO_PERMISSION error code when invoking any of these methods.

Function Documentation

nvmlReturn_t DECLDIR nvmlUnitSetLedState (nvmlUnit_t unit, nvmlLedColor_t color)

Set the LED state for the unit. The LED can be either green (0) or amber (1).
For S-class products. Requires root/admin permissions.
This operation takes effect immediately.
Current S-Class products don’t provide unique LEDs for each unit. As such, both front and back LEDs will be toggled in unison regardless of which unit is specified with this command.
See nvmlLedColor_t for available colors.
unit The identifier of the target unit
color The target LED color
o NVML_SUCCESS if the LED color has been set
o NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized
o NVML_ERROR_INVALID_ARGUMENT if unit or color is invalid
o NVML_ERROR_NOT_SUPPORTED if this is not an S-class product
o NVML_ERROR_NO_PERMISSION if the user doesn’t have permission to perform this operation
o NVML_ERROR_UNKNOWN on any unexpected error
See also:


Generated automatically by Doxygen for NVML from the source code.
⇧ Top