adry_b89
adry_b89

Reputation: 43

Cannot compile Cuda 7.0 sample

I installed CUDA 7.0 as described here on Ubuntu 14.04. I look at matrix mul example, if I start executable file matrixMul that runs, but if I try to compile it gives me error on libraries. i.e user@Mars:~/Documenti/Bello/NVIDIA_CUDA-7.0_Samples/0_Simple/matrixMul$ nvcc matrixMul.cu matrixMul.cu:36:30: fatal error: helper_functions.h: File o directory non esistente #include <helper_functions.h> ^ compilation terminated.

Upvotes: 0

Views: 296

Answers (1)

adry_b89
adry_b89

Reputation: 43

The problem was caused by trying to compile the sample using nvcc without the correct compiler options, rather than with the supplied makefile. Using the makefile allowed the compilation to work successfully.

Upvotes: 1

Related Questions