I want to integrate the lu_dcmp.cu file with the another c files. For that purpose i have created .so for lu_dcmp.cu. but getting error while linking .so with the another c file.
frame3dd_io.o: In function
cubic_bent_beam': frame3dd_io.c:(.text+0x74ca): undefined reference to lu_dcmp’
collect2: ld returned 1 exit status
make: *** [frame3dd] Error 1
There are three files :
For lu_dcmp.cu there is lu_dcmp.h file and for frame3dd_io.c there is frame3dd_io.h file.
In lu_dcmp.cu file lu decomposition code has written.
lu_dcmp() function is called in frame3dd_io.c file by cubic_bent_beam() function.