Comments (4)
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 runsource 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.
closed due to inactivity
from switch-cuda.
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.
You can use emulate sh -c "source switch-cuda.sh"
in zsh
from switch-cuda.
Related Issues (2)
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 switch-cuda.