-
Notifications
You must be signed in to change notification settings - Fork 27
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
NVCC include path not found #5
Comments
Check $CUDA_HOME/include/cuda_runtime_api.h exists and you have permission to access it (e.g. If you aren't able to figure out what's going wrong from that, please attach config.log here so the devs can take a look. |
$CUDA_HOME/include/cuda_runtime_api.h does exist.
I can use nvcc in my terminal. And I always use sudo to run the configure. I am sorry. Because I am in China, Github cannot be accessed sometimes. I failed upload the file. Would you mind taking a look at here? Thank you! https://gist.github.com/poofee/54e53923df63aaafab6ffb621174e9be |
May I ask where is the file "conftest.c"? What's it? Now I have run out of every method I know. I log in the root account. And I run the script in the terminal. |
Finally, I have solved the problem. |
Please recheck file spral/m4/spral_nvcc_lib.m4 , line 23: |
Hi poofee, Please, can you try configuring as described below ( ./autogen.sh
./configure --with-metis="-L/usr/local/lib -lmetis" --with-blas="-L/usr/OpenBLAS -lopenblas" That is, without specifying First, please try to If you still get errors, can you please set Please let us know which option (with or without |
When I cloned the code, I have built as what you said. Everything went OK. But when I tried to use CUDA, the problems occur. |
Thank you for the check! Can you try the following:
./autogen.sh
NVCC=nvcc ./configure --with-metis="-L/usr/local/lib -lmetis" --with-blas="-L/usr/OpenBLAS -lopenblas" Do you get CUDA recognized and working now? |
No. |
Yes, it looks like a typo, thank you! If you change If so, can you |
No. |
OK, I'll post here if I figure out what is happening. |
I can now confirm, that even with the typo fixed,
Thank you again for reporting this! |
It's good to confirm the problem. I really learn a lot. |
Hi guys, I am trying to package spral into Gentoo ebuild system, but having this CUDA related issue. It is failing in configure part, same message as here discussed. My Gentoo ebuild is quite simple:
It fails on the part src_configure, any suggestion what I am doing wrong here? Thanks a lot. |
My generated configure command looks like: So it is already too late, I understand that this should be set before ./configure execution. |
Where exactly I should set this variable = in Makefile.in? |
Are you using the latest sources from master? If so, can you try not setting What do you get? |
Thanks for quick response, so if I go just by this:
So this generates following ./configure command: I still have issue with NVCC, the nvcc itself is found as first lines, but at the end the INCLUDE detect mechanism doesn't work well:
|
You have a very interesting CUDA environment, it seems. If you look at line 3 of the So, something strange is going on here. |
:-) Yes, good catch, I am on following versions:
But when I try to compile following piece of code:
I get 0, looks to me like cude works fine. |
But I will try to examine, true is that in Gentoo you can switch which GPU chip is used for OpenGL, it was switched to run on intel graphics, now I switched it to Nvidia and I got additional message:
Normally OpenGL could be switched to Intel cpu gpu and I can still use CUDA externally... I will re-install/compile those 3 packages again and give it another try... |
Ok, I shouldn't be doing the openGL target switch, which somehow harmed my nvidia device as ACCESS DENIED to /dev/nvidia-uvm. Anyway I reinstalled the packages, the GCC itself for sure (I have multi GCC experimental machine), in this case I work with 5.4.0-r3. Now I executed following more advanced Hello world for CUDA:
I get following:
I additionally tried to query the device with toolkit query utility:
So seems like CUDA works for me. Still when I tried to recompile now the package I get the same error. Also note I have multiple packages installed with CUDA support enable which work... |
I don't know what you are trying to achieve with this, but your code cannot work as you've said:
In the kernel, you are adding to I don't have to compile the code to see that. |
This is just dummy CUDA test, and the output is:
The code works, you should compile it 🗡️ |
Any idea? CUDA works on the machine... thanks for any hint... |
Closing as outdated, please open a new issue if you still have problems. |
On my Ubuntu16.04 system, when I run
The configure outputs "error NVCC include path not found". I am sure I have set the correct CUDA_HOME.
I don't know much about the configure and makefile, so how can I fix it? Thank you!
The text was updated successfully, but these errors were encountered: