I am getting the following errors while linking cudpp library with my code:
tmpxft_0000058e_00000000-11_sba_levmar.ii:(.text+0xbb9b): undefined reference to cudppPlan' tmpxft_0000058e_00000000-11_sba_levmar.ii:(.text+0xbbcb): undefined reference to cudppSegmentedScan’
tmpxft_0000058e_00000000-11_sba_levmar.ii:(.text+0xbbd6): undefined reference to `cudppDestroyPlan’
I am not using the common.mk to compile the code, since I need to integrate this module with rest of one cpp project. So what was done is to compile the module manually using nvcc to create the .o files, like
I’ve the same problem, anyone have the solution please ?
I tried to include the file of the cudpp library, but I have other errors now :
“radixsort.cu(924): error: more than one instance of overloaded function “numCTAs” matches the argument list:
function template “size_t numCTAs(T)”
function template “int numCTAs(T)”
argument types are: ()”
I’ve the same problem, anyone have the solution please ?
I tried to include the file of the cudpp library, but I have other errors now :
“radixsort.cu(924): error: more than one instance of overloaded function “numCTAs” matches the argument list:
function template “size_t numCTAs(T)”
function template “int numCTAs(T)”
argument types are: ()”
I ran into the same problem and I figured out at least in my case it was the order in which the libraries were being linked that was the problem. This is a general thing http://stackoverflow.com/questions/45135/linker-order-gcc and not cudpp specific. Here are 3 commands to compile the simpleCUDPP example from the cudpp install:
simpleCUDPP.o(.text+0x2a): In function `main':
: undefined reference to `cutCheckCmdLineFlag'
simpleCUDPP.o(.text+0xde): In function `runTest(int, char**)':
: undefined reference to `cutGetCmdLineArgumenti'
simpleCUDPP.o(.text+0x150): In function `runTest(int, char**)':
: undefined reference to `cutCheckCmdLineFlag'
simpleCUDPP.o(.text+0x242): In function `runTest(int, char**)':
: undefined reference to `cudppPlan'
simpleCUDPP.o(.text+0x275): In function `runTest(int, char**)':
: undefined reference to `cudppScan'
simpleCUDPP.o(.text+0x2c6): In function `runTest(int, char**)':
: undefined reference to `cutComparef'
simpleCUDPP.o(.text+0x30e): In function `runTest(int, char**)':
: undefined reference to `cudppDestroyPlan'