Can't find cufft.h
Opened this issue · 4 comments
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
Maybe you can check my makefile, I added a few more environment variables.
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] …
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.
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.