Giter VIP home page Giter VIP logo

Comments (4)

phohenecker avatar phohenecker commented on May 26, 2024

hi @sbaktha! can you provide a few more details:

  • which operating system do you use?
  • do you use bash or a different shell?
  • does nvidia-smi work properly before you run source switch-cuda.sh?
  • after you sourced the script, is nvidia-smi not found anymore or does it provide an error message?

if your environment variables point to /usr/local/cuda-10.2 (e.g., your PATH looks like this: ...:/usr/local/cuda-10.2/bin:...), then creating a symlink does not change anything.

from switch-cuda.

phohenecker avatar phohenecker commented on May 26, 2024

closed due to inactivity

from switch-cuda.

sbaktha avatar sbaktha commented on May 26, 2024

Hi, I figured another way to do this by using aliases to just edit the path variables directly. But I would love your help in figuring this out.
I'm using Ubuntu 18.04
My shell is zsh (oh-my-zsh to manage the configuration)
nvidia-smi works perfectly before sourcing this

I found the source of the error. My path variable is pointing only to the cuda directory and nothing else after sourcing the script. So even the basic shell commands (ls, cd ..) and of course other commands as well are not working.

So I take it that since my shell is ZSH, it is messing up. Any help on how to make this work on zsh would be much appreciated.

from switch-cuda.

MenxLi avatar MenxLi commented on May 26, 2024

You can use emulate sh -c "source switch-cuda.sh" in zsh

from switch-cuda.

Related Issues (2)

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.