Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make devcontainer compatible with Codespaces and local VS code #59

Open
charlesfrye opened this issue Nov 12, 2022 · 1 comment
Open

Comments

@charlesfrye
Copy link
Collaborator

In order to get CUDA when launching inside VSCode, the devcontainer.json needs to include gpu arguments for docker run:

{
  "runArgs": [
    "--gpus",
    "all"
]
}

This isn't necessary when using GitHub Codespaces+GPUs. Before changing the devcontainer, we should make sure this change works with that platform.

@charlesfrye
Copy link
Collaborator Author

okay, so the tricky bit here is that it's hard to support both VSCode and Codespaces development both with and without GPUs

VSCode really just wants to use the .devcontainer/devcontainer.json -- I cannot figure out how to get it to use literally anything else, even after diving into settings. It may be possible when the devcontainer.json is available locally, but not when it's on a remote.

But that breaks the pattern I set up at the start, which is that the default devcontainer works with the default GitHub Codespace machines.

I'm thinking perhaps we use default GitHub Codespace machines, but then we run GPU-accelerated jobs elsewhere. That'll depend on cloud-native GPU development tools being good enough that we can recommend them. My experience so far with Modal was pretty positive.

There's also some stuff with making sure git config info is passed along -- though that may be because my remote was misconfigured. It's also going to be important to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant