I'm having problems using separate compilation with cuda c. I have 2 files. nsim.cu and methods.cu.
in my methods.cu files, i have all my kernel functions "_ _global _ _" and my nsim.cu calls these functions. my problem is that when trying to call the methods in my object files, I get an
error : "identifier "MyMethod" is undefined"
heres how I am using nvcc:
NVCC= /usr/local/cuda-5.5/bin/nvcc
NVCCFLAGS= -arch=sm_35 -dc
LIBS= -lglut -lGL -lcurand
OBJECTS = nsim.o methods.o
go:
rm -f ${OBJECTS}
${NVCC} ${NVCCFLAGS} methods.cu ${LIBS}
${NVCC} ${NVCCFLAGS} nsim.cu ${LIBS}
${NVCC} ${NVCCFLAGS} ${OBJECTS} -o nsim
nsim.cu contains my main method, and is where the errors are being thrown at compile time
thank you for any input!