Coder Social home page Coder Social logo

Comments (7)

flx42 avatar flx42 commented on May 22, 2024

@RenaudWasTaken didn't we say that we should do an infinite loop in this case?

from k8s-device-plugin.

dredwilliams avatar dredwilliams commented on May 22, 2024

Just to see if it would make a difference, I installed the drivers, cuda libs, and container runtime on the non-GPU nodes. The error changed to: "nvidia-container-cli: initialization error: cuda error: unknown error"

@flx42 I'd suggest an infinite sleep ... we don't want to consume CPU resources unnecessarily.

Thanks!

from k8s-device-plugin.

flx42 avatar flx42 commented on May 22, 2024

Sure sure, that's what I meant. Like this: https://github.com/NVIDIA/k8s-device-plugin/blob/v1.9/main.go#L26

from k8s-device-plugin.

dredwilliams avatar dredwilliams commented on May 22, 2024

Unless I'm mistaken, that error message is coming from the container runtime when it's trying to set up before it runs the plugin. This might need to be a mod to the nvidia-container runtime?

from k8s-device-plugin.

flx42 avatar flx42 commented on May 22, 2024

No, you just shouldn't install the runtime and the driver on a non-GPU node.
And then we will just need to modify this line:
https://github.com/NVIDIA/k8s-device-plugin/blob/v1.9/main.go#L19

from k8s-device-plugin.

dredwilliams avatar dredwilliams commented on May 22, 2024

@flx42 I replaced the exit() with the select {} as you suggested and it now behaves nicely. Thanks!

from k8s-device-plugin.

RenaudWasTaken avatar RenaudWasTaken commented on May 22, 2024

@dredwilliams thanks for reporting this! Fixed in the latest version :)
Images will pushed to the Docker Hub shortly

from k8s-device-plugin.

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.