Assign CUDA_VISIBLE_DEVICES for Docker when passing GPUs
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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