Compiler CUDA samples use Makefile on Ubuntu !

hi all,
I am a new CUDA programming, I used CUDA-6.5, I try compiler CuDa samples,
but not success;

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 and a Makefile, how I want to compiler it ?


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:

$ <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.

Thanks for reply…!

i tried the above command " ". the copying of samples is done but my compiler is still unable to find the helper_cuda.h file please help me out.


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 …