it is not #include “cuda.h” but #include “cuda/cuda.h”
First problem solved. but now the second one. it cannot find the cudaMalloc functions.
I know cudaMalloc is not part of the cuda.h I think it is part of cuda_runtime.h or something like that. but where can I find that header?
Thanks, found it again. All those problems are solved only thing rested now is my undefined reference to my wrapper in my library… The library is linked, the header is included but still it is complaining about an undefined reference to… External Image
Here are a few thoughts. The order in which libraries are linked matters, are you linking libraries in the proper order? Maybe your libraries makefile is missing a file to be compiled in? I myself am notorious for forgetting the “ClassName::” prefix to definitions of member functions: if it still manages to compile I get undefined references to that classes member function :)