Giter Club home page Giter Club logo

Comments (6)

raouln97 avatar raouln97 commented on June 2, 2024 1

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.

89luca89 avatar 89luca89 commented on June 2, 2024

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.

raouln97 avatar raouln97 commented on June 2, 2024

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.

89luca89 avatar 89luca89 commented on June 2, 2024

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.

raouln97 avatar raouln97 commented on June 2, 2024

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.

89luca89 avatar 89luca89 commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.