Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Devcontainer will not work on machines without GPU #17

Open
adverley opened this issue Feb 28, 2022 · 1 comment
Open

Devcontainer will not work on machines without GPU #17

adverley opened this issue Feb 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@adverley
Copy link
Collaborator

Our devcontainer uses the nvidia-container-runtime which specifies the --gpus docker run parameter. This only works on machines containing an NVIDIA GPU.

Possible solutions:

  1. [Lazy and easy] Comment out the --gpus all line
  2. Follow-up feature request for dynamic docker runargs
  3. Check available variables in devcontainer. Maybe we can set --gpus to a variable that just ignores this param. Don't think this will work though.
@adverley adverley added the enhancement New feature or request label Feb 28, 2022
@xerxesb
Copy link

xerxesb commented Mar 10, 2022

Exactly the same problem here. We have two devcontainer files (devcontainer.json with gpu support, and devcontainer-nogpu.json) the its up to the poor dev running on a Mac (me) to have to swap them out constantly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants