lablup / lablup/backend.ai

Add `ag device list` command to list and query device plugin states

Open
#4,070 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Motivation  

Currently the compute device plugins generate log messages about their device detection results only at the agent startup. Sometimes in customer sites, we need to inspect how they are recognized after a long time since startup, when the log messages may be lost due to rotation.

## Required Features

- Agent CLI command(s) to list and query the detected compute devices and their capacity, just like the log messages shown during the agent startup.
- Agent CLI command to perform the fraction ratio conversion to show “how much `xxx.shares` corresponds to a designated accelerator device” if the designated device plugin supports the fractional allocation mode.

## Testing Scenarios  

- Use the dummy device plugin to simulate discrete/fractional devices.

JIRA Issue: BA-1065

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.