Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in compiling install.sh #12

Open
shashankvkt opened this issue Dec 24, 2018 · 4 comments
Open

Issue in compiling install.sh #12

shashankvkt opened this issue Dec 24, 2018 · 4 comments

Comments

@shashankvkt
Copy link

Hello,
Thank you for providing the code. I was trying to compile the install.sh file but Im getting the following error:-

in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.error.VerificationError: LinkError: command 'gcc' failed with exit status 1

I have edited my mask.sh file with the nvcc path as
nvcc -c -o correlation_cuda_kernel.o correlation_cuda_kernel.cu -x cu -Xcompiler -fPIC -arch=sm_52 -I ${TORCH}/utils/ffi
My nvcc --version gives me:-

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

Could you kindly assist me with this issue? Thanks a lot

@hujingtao
Copy link

Hello =) I've met the same problem as you. Did you solve this issue?
Thanks!

@ziBLan
Copy link

ziBLan commented Oct 12, 2021

I install pytorch 0.4.0 instead of 0.4.1. The question is solved.

@xudanni0927
Copy link

I had this problem. too.
I find there is another error " fatal error: cuda.h: No such file or directory" before this error.
Then I fixed it with this command "sudo ln -s /usr/local/cuda-8.0 /usr/local/cuda".
Then it can be compiled correctly.

@ziBLan
Copy link

ziBLan commented Mar 26, 2022

I had this problem. too. I find there is another error " fatal error: cuda.h: No such file or directory" before this error. Then I fixed it with this command "sudo ln -s /usr/local/cuda-8.0 /usr/local/cuda". Then it can be compiled correctly.

oh,thanks,maybe I have resolved it before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants