[][src]Function nvml_binding::bindings::nvmlShutdown

pub unsafe extern "C" fn nvmlShutdown() -> nvmlReturn_t

Shut down NVML by releasing all GPU resources previously allocated with \ref nvmlInit().

For all products.

This method should be called after NVML work is done, once for each call to \ref nvmlInit() A reference count of the number of initializations is maintained. Shutdown only occurs when the reference count reaches zero. For backwards compatibility, no error is reported if nvmlShutdown() is called more times than nvmlInit().

@return - \ref NVML_SUCCESS if NVML has been properly shut down - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_UNKNOWN on any unexpected error