CUDA 7 and 10 installed, but NVCC presents only CUDA 7
up vote
0
down vote
favorite
The
/usr/local/
shows folder
cuda
and
cuda-10.0
folder.
Also
$ cat /usr/local/cuda/version.txt
shows version 10, but nvcc shows 7. Please let me know how to fix this.
cuda
New contributor
add a comment |
up vote
0
down vote
favorite
The
/usr/local/
shows folder
cuda
and
cuda-10.0
folder.
Also
$ cat /usr/local/cuda/version.txt
shows version 10, but nvcc shows 7. Please let me know how to fix this.
cuda
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The
/usr/local/
shows folder
cuda
and
cuda-10.0
folder.
Also
$ cat /usr/local/cuda/version.txt
shows version 10, but nvcc shows 7. Please let me know how to fix this.
cuda
New contributor
The
/usr/local/
shows folder
cuda
and
cuda-10.0
folder.
Also
$ cat /usr/local/cuda/version.txt
shows version 10, but nvcc shows 7. Please let me know how to fix this.
cuda
cuda
New contributor
New contributor
New contributor
asked Nov 28 at 2:36
Erica Zheng
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
If you installed CUDA 10, you should change your ~/.profile
file to match this:
# set PATH for cuda 10.0 installation
if [ -d "/usr/local/cuda-10.0/bin/" ]; then
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
Log out then back in for changes to take effect.
The nvcc
app is found in the /usr/local/cuda-10.0/bin
folder, but yours is probably showing /usr/local/cuda-7.x/bin
in your ~/.profile
file.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
If you installed CUDA 10, you should change your ~/.profile
file to match this:
# set PATH for cuda 10.0 installation
if [ -d "/usr/local/cuda-10.0/bin/" ]; then
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
Log out then back in for changes to take effect.
The nvcc
app is found in the /usr/local/cuda-10.0/bin
folder, but yours is probably showing /usr/local/cuda-7.x/bin
in your ~/.profile
file.
add a comment |
up vote
0
down vote
If you installed CUDA 10, you should change your ~/.profile
file to match this:
# set PATH for cuda 10.0 installation
if [ -d "/usr/local/cuda-10.0/bin/" ]; then
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
Log out then back in for changes to take effect.
The nvcc
app is found in the /usr/local/cuda-10.0/bin
folder, but yours is probably showing /usr/local/cuda-7.x/bin
in your ~/.profile
file.
add a comment |
up vote
0
down vote
up vote
0
down vote
If you installed CUDA 10, you should change your ~/.profile
file to match this:
# set PATH for cuda 10.0 installation
if [ -d "/usr/local/cuda-10.0/bin/" ]; then
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
Log out then back in for changes to take effect.
The nvcc
app is found in the /usr/local/cuda-10.0/bin
folder, but yours is probably showing /usr/local/cuda-7.x/bin
in your ~/.profile
file.
If you installed CUDA 10, you should change your ~/.profile
file to match this:
# set PATH for cuda 10.0 installation
if [ -d "/usr/local/cuda-10.0/bin/" ]; then
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
Log out then back in for changes to take effect.
The nvcc
app is found in the /usr/local/cuda-10.0/bin
folder, but yours is probably showing /usr/local/cuda-7.x/bin
in your ~/.profile
file.
answered Nov 28 at 3:18
Terrance
18.4k34091
18.4k34091
add a comment |
add a comment |
Erica Zheng is a new contributor. Be nice, and check out our Code of Conduct.
Erica Zheng is a new contributor. Be nice, and check out our Code of Conduct.
Erica Zheng is a new contributor. Be nice, and check out our Code of Conduct.
Erica Zheng is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096672%2fcuda-7-and-10-installed-but-nvcc-presents-only-cuda-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown