nvcc can't be found error
im trying to setup a tool that requires nvcc but im unable to to do.
This is what i got so far:
- Installed the CUDA toolkit
- Verified it by using nvcc -V
output:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2013 NVIDIA Corporation
Build on Fri_Mar_14_19:30:01_PDT_2014
Cuda Compilation tools, release 6.0, V6.0.1
- CUDA's toolkit is installed under /usr/local/cuda-7.0
- linked to /usr/local/cuda (the tool looks into this directory)
when i run the setup.py
i got some error messenges, the most important error messenges are:
/bin/sh: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
none
failed to execute command '/usr/local/cuda/bin/nvcc -V'
~skipping many lines
SystemError: Nvida's CUDA-compiler 'nvcc' can't be found.
While...
user@workgroup:~$ cd /usr/local/cuda
user@workgroup:~/usr/local/cuda$ ls
bin2c
computeprof
crt
cudafe
cudafe++
cuda-gdb
cuda-gdbserver
cuda-install-samples-7.0.sh
cuda-memcheck
cuobjdump
fatbinary
filehash
nsight
nvcc << yes its there!
nvcc.profile
nvdisasm
nvlink
nvprof
nvprune
nvvp
ptxas
test
uninstall_cuda_7.0.pl
So whats wrong here? its obviously installed and im (almost) sure that the directory location is correct :
PS: i have tried adding the $PATH into the .bashrc file but no sucess:
PATH=/usr/local/cuda-7.0/bin:$PATH
PATH=/usr/local/cuda/bin:$PATH
Any reply will be appreciated
Thanks already!
PPS: im using cygwin...
edit
output of type (#1):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is hashed (/cygdrive/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.0/bin/nvcc)
output of type (#2 - (few minutes later) i have no idea what i did):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is /usr/local/cuda/bin/nvcc (same to cuda-7.0 directory, but the start of the output is a bit different(nvcc is hashed))
The main error that causing the problem is now that nvcc cant be executed, what might cause this?
bash: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
linux cygwin cuda
add a comment |
im trying to setup a tool that requires nvcc but im unable to to do.
This is what i got so far:
- Installed the CUDA toolkit
- Verified it by using nvcc -V
output:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2013 NVIDIA Corporation
Build on Fri_Mar_14_19:30:01_PDT_2014
Cuda Compilation tools, release 6.0, V6.0.1
- CUDA's toolkit is installed under /usr/local/cuda-7.0
- linked to /usr/local/cuda (the tool looks into this directory)
when i run the setup.py
i got some error messenges, the most important error messenges are:
/bin/sh: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
none
failed to execute command '/usr/local/cuda/bin/nvcc -V'
~skipping many lines
SystemError: Nvida's CUDA-compiler 'nvcc' can't be found.
While...
user@workgroup:~$ cd /usr/local/cuda
user@workgroup:~/usr/local/cuda$ ls
bin2c
computeprof
crt
cudafe
cudafe++
cuda-gdb
cuda-gdbserver
cuda-install-samples-7.0.sh
cuda-memcheck
cuobjdump
fatbinary
filehash
nsight
nvcc << yes its there!
nvcc.profile
nvdisasm
nvlink
nvprof
nvprune
nvvp
ptxas
test
uninstall_cuda_7.0.pl
So whats wrong here? its obviously installed and im (almost) sure that the directory location is correct :
PS: i have tried adding the $PATH into the .bashrc file but no sucess:
PATH=/usr/local/cuda-7.0/bin:$PATH
PATH=/usr/local/cuda/bin:$PATH
Any reply will be appreciated
Thanks already!
PPS: im using cygwin...
edit
output of type (#1):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is hashed (/cygdrive/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.0/bin/nvcc)
output of type (#2 - (few minutes later) i have no idea what i did):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is /usr/local/cuda/bin/nvcc (same to cuda-7.0 directory, but the start of the output is a bit different(nvcc is hashed))
The main error that causing the problem is now that nvcc cant be executed, what might cause this?
bash: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
linux cygwin cuda
The error doesn't say nvcc can't be found, it says it cannot be executed because it has an invalid or unknown executable file format. You state that you are able to execute it usingnvcc -V
but you haven't showed us proof that you are able to execute the specific version in that directory. What is the output oftype nvcc
? If it points to anywhere but /usr/local/cuda/bin/nvcc or possibly /usr/local/cuda-7.0/bin/nvcc, there's your problem right there.
– a CVn
Jun 20 '15 at 16:35
@MichaelKjörling i will add the output of type within a minute in my first post, edited. oh and thanks now i see where the problem is comming from. but how im suppose to changethe location? i will check the installer of cuda atm... (6:42PM)
– Vanya Varvi
Jun 20 '15 at 16:38
Great. Well, there's your problem; your shell is finding the bare namenvcc
somewhere completely different, which is the cause for the discrepancy.
– a CVn
Jun 20 '15 at 16:41
im very confused, right now the output of type nvcc is /usr/local/cuda/bin/nvcc
– Vanya Varvi
Jun 20 '15 at 16:51
add a comment |
im trying to setup a tool that requires nvcc but im unable to to do.
This is what i got so far:
- Installed the CUDA toolkit
- Verified it by using nvcc -V
output:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2013 NVIDIA Corporation
Build on Fri_Mar_14_19:30:01_PDT_2014
Cuda Compilation tools, release 6.0, V6.0.1
- CUDA's toolkit is installed under /usr/local/cuda-7.0
- linked to /usr/local/cuda (the tool looks into this directory)
when i run the setup.py
i got some error messenges, the most important error messenges are:
/bin/sh: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
none
failed to execute command '/usr/local/cuda/bin/nvcc -V'
~skipping many lines
SystemError: Nvida's CUDA-compiler 'nvcc' can't be found.
While...
user@workgroup:~$ cd /usr/local/cuda
user@workgroup:~/usr/local/cuda$ ls
bin2c
computeprof
crt
cudafe
cudafe++
cuda-gdb
cuda-gdbserver
cuda-install-samples-7.0.sh
cuda-memcheck
cuobjdump
fatbinary
filehash
nsight
nvcc << yes its there!
nvcc.profile
nvdisasm
nvlink
nvprof
nvprune
nvvp
ptxas
test
uninstall_cuda_7.0.pl
So whats wrong here? its obviously installed and im (almost) sure that the directory location is correct :
PS: i have tried adding the $PATH into the .bashrc file but no sucess:
PATH=/usr/local/cuda-7.0/bin:$PATH
PATH=/usr/local/cuda/bin:$PATH
Any reply will be appreciated
Thanks already!
PPS: im using cygwin...
edit
output of type (#1):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is hashed (/cygdrive/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.0/bin/nvcc)
output of type (#2 - (few minutes later) i have no idea what i did):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is /usr/local/cuda/bin/nvcc (same to cuda-7.0 directory, but the start of the output is a bit different(nvcc is hashed))
The main error that causing the problem is now that nvcc cant be executed, what might cause this?
bash: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
linux cygwin cuda
im trying to setup a tool that requires nvcc but im unable to to do.
This is what i got so far:
- Installed the CUDA toolkit
- Verified it by using nvcc -V
output:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2013 NVIDIA Corporation
Build on Fri_Mar_14_19:30:01_PDT_2014
Cuda Compilation tools, release 6.0, V6.0.1
- CUDA's toolkit is installed under /usr/local/cuda-7.0
- linked to /usr/local/cuda (the tool looks into this directory)
when i run the setup.py
i got some error messenges, the most important error messenges are:
/bin/sh: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
none
failed to execute command '/usr/local/cuda/bin/nvcc -V'
~skipping many lines
SystemError: Nvida's CUDA-compiler 'nvcc' can't be found.
While...
user@workgroup:~$ cd /usr/local/cuda
user@workgroup:~/usr/local/cuda$ ls
bin2c
computeprof
crt
cudafe
cudafe++
cuda-gdb
cuda-gdbserver
cuda-install-samples-7.0.sh
cuda-memcheck
cuobjdump
fatbinary
filehash
nsight
nvcc << yes its there!
nvcc.profile
nvdisasm
nvlink
nvprof
nvprune
nvvp
ptxas
test
uninstall_cuda_7.0.pl
So whats wrong here? its obviously installed and im (almost) sure that the directory location is correct :
PS: i have tried adding the $PATH into the .bashrc file but no sucess:
PATH=/usr/local/cuda-7.0/bin:$PATH
PATH=/usr/local/cuda/bin:$PATH
Any reply will be appreciated
Thanks already!
PPS: im using cygwin...
edit
output of type (#1):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is hashed (/cygdrive/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.0/bin/nvcc)
output of type (#2 - (few minutes later) i have no idea what i did):
user@workgroup~/usr/local/cuda/bin
type nvcc
nvcc is /usr/local/cuda/bin/nvcc (same to cuda-7.0 directory, but the start of the output is a bit different(nvcc is hashed))
The main error that causing the problem is now that nvcc cant be executed, what might cause this?
bash: /usr/local/cuda/bin/nvcc: cannot execture binary file: Exec format error
linux cygwin cuda
linux cygwin cuda
edited Mar 13 '16 at 16:47
Hennes
59.2k792142
59.2k792142
asked Jun 20 '15 at 16:15
Vanya VarviVanya Varvi
2615
2615
The error doesn't say nvcc can't be found, it says it cannot be executed because it has an invalid or unknown executable file format. You state that you are able to execute it usingnvcc -V
but you haven't showed us proof that you are able to execute the specific version in that directory. What is the output oftype nvcc
? If it points to anywhere but /usr/local/cuda/bin/nvcc or possibly /usr/local/cuda-7.0/bin/nvcc, there's your problem right there.
– a CVn
Jun 20 '15 at 16:35
@MichaelKjörling i will add the output of type within a minute in my first post, edited. oh and thanks now i see where the problem is comming from. but how im suppose to changethe location? i will check the installer of cuda atm... (6:42PM)
– Vanya Varvi
Jun 20 '15 at 16:38
Great. Well, there's your problem; your shell is finding the bare namenvcc
somewhere completely different, which is the cause for the discrepancy.
– a CVn
Jun 20 '15 at 16:41
im very confused, right now the output of type nvcc is /usr/local/cuda/bin/nvcc
– Vanya Varvi
Jun 20 '15 at 16:51
add a comment |
The error doesn't say nvcc can't be found, it says it cannot be executed because it has an invalid or unknown executable file format. You state that you are able to execute it usingnvcc -V
but you haven't showed us proof that you are able to execute the specific version in that directory. What is the output oftype nvcc
? If it points to anywhere but /usr/local/cuda/bin/nvcc or possibly /usr/local/cuda-7.0/bin/nvcc, there's your problem right there.
– a CVn
Jun 20 '15 at 16:35
@MichaelKjörling i will add the output of type within a minute in my first post, edited. oh and thanks now i see where the problem is comming from. but how im suppose to changethe location? i will check the installer of cuda atm... (6:42PM)
– Vanya Varvi
Jun 20 '15 at 16:38
Great. Well, there's your problem; your shell is finding the bare namenvcc
somewhere completely different, which is the cause for the discrepancy.
– a CVn
Jun 20 '15 at 16:41
im very confused, right now the output of type nvcc is /usr/local/cuda/bin/nvcc
– Vanya Varvi
Jun 20 '15 at 16:51
The error doesn't say nvcc can't be found, it says it cannot be executed because it has an invalid or unknown executable file format. You state that you are able to execute it using
nvcc -V
but you haven't showed us proof that you are able to execute the specific version in that directory. What is the output of type nvcc
? If it points to anywhere but /usr/local/cuda/bin/nvcc or possibly /usr/local/cuda-7.0/bin/nvcc, there's your problem right there.– a CVn
Jun 20 '15 at 16:35
The error doesn't say nvcc can't be found, it says it cannot be executed because it has an invalid or unknown executable file format. You state that you are able to execute it using
nvcc -V
but you haven't showed us proof that you are able to execute the specific version in that directory. What is the output of type nvcc
? If it points to anywhere but /usr/local/cuda/bin/nvcc or possibly /usr/local/cuda-7.0/bin/nvcc, there's your problem right there.– a CVn
Jun 20 '15 at 16:35
@MichaelKjörling i will add the output of type within a minute in my first post, edited. oh and thanks now i see where the problem is comming from. but how im suppose to changethe location? i will check the installer of cuda atm... (6:42PM)
– Vanya Varvi
Jun 20 '15 at 16:38
@MichaelKjörling i will add the output of type within a minute in my first post, edited. oh and thanks now i see where the problem is comming from. but how im suppose to changethe location? i will check the installer of cuda atm... (6:42PM)
– Vanya Varvi
Jun 20 '15 at 16:38
Great. Well, there's your problem; your shell is finding the bare name
nvcc
somewhere completely different, which is the cause for the discrepancy.– a CVn
Jun 20 '15 at 16:41
Great. Well, there's your problem; your shell is finding the bare name
nvcc
somewhere completely different, which is the cause for the discrepancy.– a CVn
Jun 20 '15 at 16:41
im very confused, right now the output of type nvcc is /usr/local/cuda/bin/nvcc
– Vanya Varvi
Jun 20 '15 at 16:51
im very confused, right now the output of type nvcc is /usr/local/cuda/bin/nvcc
– Vanya Varvi
Jun 20 '15 at 16:51
add a comment |
1 Answer
1
active
oldest
votes
This would appear to have been caused by attempting to use a Linux CUDA toolkit under CYGWIN. The only configuration which will work on a Windows platform is to use the Windows toolkit with a supported version of Visual Studio.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2fsuperuser.com%2fquestions%2f930405%2fnvcc-cant-be-found-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This would appear to have been caused by attempting to use a Linux CUDA toolkit under CYGWIN. The only configuration which will work on a Windows platform is to use the Windows toolkit with a supported version of Visual Studio.
add a comment |
This would appear to have been caused by attempting to use a Linux CUDA toolkit under CYGWIN. The only configuration which will work on a Windows platform is to use the Windows toolkit with a supported version of Visual Studio.
add a comment |
This would appear to have been caused by attempting to use a Linux CUDA toolkit under CYGWIN. The only configuration which will work on a Windows platform is to use the Windows toolkit with a supported version of Visual Studio.
This would appear to have been caused by attempting to use a Linux CUDA toolkit under CYGWIN. The only configuration which will work on a Windows platform is to use the Windows toolkit with a supported version of Visual Studio.
answered Dec 24 '15 at 7:38
community wiki
talonmies
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f930405%2fnvcc-cant-be-found-error%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
The error doesn't say nvcc can't be found, it says it cannot be executed because it has an invalid or unknown executable file format. You state that you are able to execute it using
nvcc -V
but you haven't showed us proof that you are able to execute the specific version in that directory. What is the output oftype nvcc
? If it points to anywhere but /usr/local/cuda/bin/nvcc or possibly /usr/local/cuda-7.0/bin/nvcc, there's your problem right there.– a CVn
Jun 20 '15 at 16:35
@MichaelKjörling i will add the output of type within a minute in my first post, edited. oh and thanks now i see where the problem is comming from. but how im suppose to changethe location? i will check the installer of cuda atm... (6:42PM)
– Vanya Varvi
Jun 20 '15 at 16:38
Great. Well, there's your problem; your shell is finding the bare name
nvcc
somewhere completely different, which is the cause for the discrepancy.– a CVn
Jun 20 '15 at 16:41
im very confused, right now the output of type nvcc is /usr/local/cuda/bin/nvcc
– Vanya Varvi
Jun 20 '15 at 16:51