mlcommons / mlcommons/mlcube

Assign CUDA_VISIBLE_DEVICES for Docker when passing GPUs

Open
#344 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
160
Forks
31
PR merge metrics
No merged PRs in 30d

Description

At the moment, passing GPUs to docker does not automatically set the CUDA_VISIBLE_DEVICES environment variable within the container. This variable is needed in some situations, and it has a direct relationship to the gpus that are being passed to the MLCube through --gpus. Automatically setting that variable would be a great feature for MLCube.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating MLCube's Docker execution path and the handling of the --gpus option. Check how GPU selections are passed into containers, then verify the container environment for the expected CUDA_VISIBLE_DEVICES value; done means GPU-enabled Docker runs set that variable consistently with the GPUs requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops, machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.