I have a simple program for solving the heat equaition. It consists of a host code heat.cu, a kernel heat_kernel.cu and a header heat.h. I try to compile and link using
nvcc -o run heat.cu heat_kernel.cu
and I get the following error message:
/tmp/tmpxft_00004991_00000000-24_heat_kernel.o: In function __device_stub__Z10heatevolvePiPf': tmpxft_00004991_00000000-23_heat_kernel.ii:(.text+0x6b9e): multiple definition of
__device_stub__Z10heatevolvePiPf’
/tmp/tmpxft_00004991_00000000-15_heat.o:tmpxft_00004991_00000000-14_heat.ii:(.text+0x6b9e): first defined here
collect2: ld returned 1 exit status
It seems like its compiling OK but the linking is failing. I have no idea what this error message means. Anybody have any ideas?