Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7074

Trouble While Setting CUDA Enviormental variables in ubuntu 20.04 [closed]

$
0
0

as we install new drivers , their binary updations to system path becomes neccesityas there is one temporary method to export path via terminal

but when i want to make it permannent i have to set in root/.bashrc,root/.profile& home/.bashrc, home/.profile

after updating a path here as

export PATH=`$PATH:/usr/local/cuda-11.8/bin`export LD_LIBRARY_PATH=`$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64`

in all four files mentioned abovesthe PATH Defination gets updated and basic linux commands like clear and ls also not works

i get to realise it has to be insert in a list/array faishon so i refer this post how-to-multiple-entries-to-path

so i updated PATH in all above four files as

export PATH='/bin:\ /usr/bin:\ /usr/sbin:\ /usr/local/cuda-11.8/bin:\'


but even after this my basic linux commands are working but cuda is not able to detect when i am hitting nvcc -v in terminal as nvcc location is already at exported as export PATH=$PATH:/usr/local/cuda-11.8/bin`

i dont know where i am making mistake please help

to help me which knowldege and awareness i am lacking so i am stuck to this problem


Viewing all articles
Browse latest Browse all 7074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>