cuda.bindings.nvml.device_get_mig_mode#
- cuda.bindings.nvml.device_get_mig_mode(intptr_t device) tuple#
Get MIG mode for the device. :param device: The identifier of the target device. :type device: intptr_t :returns: - unsigned int: Returns the current mode, ``NVML_DEVICE_MIG_DISABLE`` or ``NVML_DEVICE_MIG_ENABLE``. - unsigned int: Returns the pending mode, ``NVML_DEVICE_MIG_DISABLE`` or ``NVML_DEVICE_MIG_ENABLE``. :rtype: A 2-tuple containing .. seealso:: `nvmlDeviceGetMigMode`