Comments (6)
yup we do, so it should assign the gpu to the pod!
Testing out now with the devcontainer setup you provided :)
we were initially using a setup.sh and init.sh file in .devcontainer so i've switched it to follow the setup provided and added in docker features as we're going to use docker compose/build to run our repo
from devpod.
Hi @raouln97
If you already have a machine with GPU support, then you can use a devcontainer setup like this one: https://github.com/psaboia/devcontainer-nvidia-base in the repo, and then use devpod for that repo
from devpod.
we're actually trying to use a pod_manifest_template to run a gpu in the pod
something like this:
apiVersion: v1
kind: Pod
metadata:
name: raouls-gpu-test
spec:
priorityClassName: gpu-apps
containers:
- name: raouls-gpu-container
image: ghcr.io/loft-sh/dockerless:0.1.4
resources:
requests:
cpu: "500m"
memory: "5Gi"
nvidia.com/gpu: "1" # Requesting 1 NVIDIA GPU
limits:
cpu: "1000m"
memory: "8Gi"
nvidia.com/gpu: "1" # Limiting to 1 NVIDIA GPU
tolerations:
- key: "sku"
operator: "Equal"
value: "gpu"
effect: "NoSchedule"
volumeMounts:
- mountPath: /workspaces/.home
name: devpod
subPath: devpod/home
from devpod.
if you already have the gpu-operator already in place, this should work, at most I'd say to add a node affinity to ensure it gets scheduled on the node with the gpus
from devpod.
Hey @89luca89 ,
i tried applying our pod manifest template separately and tested the gpu access with "nvidia-smi" and i could see the availability of the gpu
However, using the nvidia configurations you provided in the .devcontainer folder seems to rebuild the pod without the gpu requirements and hence, gpu can't be accessed inside the devpod container
any ideas how to get around this?
Thanks! :)
from devpod.
I think for the k8s provider to pick up the resourse correctly you need to name the container devpod
instead of raouls-gpu-container
from devpod.
Related Issues (20)
- Issue faced during machine ssh into devpod machine. HOT 9
- Devpod machine created from cli does not respect inactivity timeout HOT 7
- Add link to docs on how to specify branch HOT 1
- Devcontainer with features gets rebuilt every time it is restarted HOT 24
- postCreateCommand output shows as errors HOT 3
- Timeout creating workspace on DigitalOcean provider HOT 6
- Display the Devpods by "last used at" instead of creation date HOT 1
- The right way to build a workspace [kubernetes] HOT 4
- Infinite app instance spawns on macOS HOT 12
- No easy way to see logs after clicking back button HOT 1
- Error opening workspace via Hetzner ARM VPS HOT 3
- ssh-agent forwarding not working from Windows HOT 4
- Git index file corrupted when rebuilding container HOT 2
- ssh terminal rendering issues HOT 2
- Devpod Kubernetes Provider - Using persistent volume claim HOT 1
- DevPod Kubernetes provider not handling bind mounts correctly HOT 1
- rebuild failed HOT 4
- docker compose `include` not supported HOT 1
- Improve trust when installing agent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devpod.