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

Can't find cufft.h #23

Open
wangrsc opened this issue Jul 22, 2024 · 4 comments
Open

Can't find cufft.h #23

wangrsc opened this issue Jul 22, 2024 · 4 comments

Comments

@wangrsc
Copy link

wangrsc commented Jul 22, 2024

Hello, I was trying to install AreTomo2, but encountered an error:
$make exe -f makefile
In file included from Util/CNextItem.cpp:1:
Util/CUtilInc.h:3:10: fatal error: cufft.h: No such file or directory
#include <cufft.h>
^~~~~~~~~
compilation terminated.

I searched the files, and in Util/CNextItem.cpp, includes "CUtilInc.h". In Util/CUtilInc.h, it includes cufft.h.
But there is no cufft.h in the folder.

Would you please help?

Thanks.
Liguo

@alncat
Copy link

alncat commented Jul 23, 2024

makefile11.txt

Maybe you can check my makefile, I added a few more environment variables.

@wangrsc
Copy link
Author

wangrsc commented Jul 23, 2024

I tried it and still got the same error:
$make exe -f makefile11.txt
In file included from Util/CNextItem.cpp:1: Util/CUtilInc.h:3:10: fatal error: cufft.h: No such file or directory #include <cufft.h> ^~~~~~~~~ compilation terminated. make: *** [makefile11.txt:200: Util/CNextItem.o] …

@alncat
Copy link

alncat commented Jul 24, 2024

Maybe you should change $CUDA_HOME to the directory for cuda on your machine. cufft.h is located at $CUDA_HOME/include aka $CUDAINC in my makefile.

@szhengczii
Copy link
Collaborator

cufft.h is part of cuda toolkit. Do you know where cuda toolkit is installed on your system? You can check if it is installed in /usr/local. If you cannot find it, run "nvcc --version". If you cannot run this command, it means that cuda toolkit is not installed.

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

3 participants