hi all,
I am a new CUDA programming, I used CUDA-6.5, I try compiler CuDa samples,
but not success;
Error:
fatal error : helper_functions.h : No such file or directory
#include <helper_function.h>
compilation terminated.
So, how i want to do it ?
if I have file.cu and a Makefile, how I want to compiler it ?
Mouda
March 31, 2015, 7:43am
2
Hi,
The header helper_function.h is located at NVIDIA_CUDA-6.5_Samples/common/inc.
You can copy all the sample by using the build-in script:
$ cuda-install-samples-6.5.sh <path you want>
Then you can find the Makefile and the missing header. You can build all the samples simply by make.
It should be workable.
Mouda,
Thanks for reply…!
i tried the above command “cuda-install-samples-6.5.sh ”. the copying of samples is done but my compiler is still unable to find the helper_cuda.h file please help me out.
Hi,
helper_cuda.h is located at ‘~/NVIDIA_CUDA-8.0_Samples/common/inc’.
Please make sure your makefile has included this folder.
Ex. … -I/home/nvidia/NVIDIA_CUDA-8.0_Samples/common/inc …