czimaginginstitute / AreTomo2

BSD 3-Clause "New" or "Revised" License
42 stars 6 forks source link

Can't find cufft.h #23

Open wangrsc opened 2 months ago

wangrsc commented 2 months ago

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

      ^~~~~~~~~

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 commented 2 months ago

makefile11.txt

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

wangrsc commented 2 months ago

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 ^~~~~ compilation terminated. make: *** [makefile11.txt:200: Util/CNextItem.o] …

alncat commented 2 months ago

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.