I get a similar __cudaRegisterLinkedBinary error when using CUDA 5.0 in VS2008. I haven’t found a satisfactory solution to the problem, but deleting the device-link.obj file prior to compilation or doing a clean build eliminates the error.
unresolved external symbol ___cudaRegisterLinkedBinary
when linking a CUDA static library created by myself, say func.lib, to a Visual Studio 2010 project.
I was initially adding the directory containing func.lib to
I have question how to solve very similar problem.
I’ve code in which I would like to call cuda kernel from other (known as dynamic parallelism).
From demo:
global void ChildKernel()
{
} global void ParentKernel()
{
ChildKernel<<<16, 1>>>();
}
int main()
{
ParentKernel<<<256, 64>>>();
}
I setup (VS 2008 with cuda 5.5 project):
sm_35
-rdc=true
cudart.lib cudadevrt.lib
but still have an error:
kernel.cu.obj : error LNK2019: unresolved external symbol __cudaRegisterLinkedBinary_41_tmpxft_0002af98_00000000_8_kernel_cpp1_ii_f853efa9 referenced in function “void __cdecl __sti____cudaRegisterAll_41_tmpxft_0002af98_00000000_8_kernel_cpp1_ii_f853efa9(void)” (?__sti____cudaRegisterAll_41_tmpxft_0002af98_00000000_8_kernel_cpp1_ii_f853efa9@@YAXXZ)
Have someone idea what else should be configured ?
–
I see that this could be a problem with VS project templates which under VS2008 use MS Linker insted Cuda linker. Any solutions ?
I posted twice because portal gave me time-out error.