Saturday, April 13, 2013

CUDA: unresolved external function …

 

When you see this compilation error with many random characters such as ‘@’ and ‘&’ wrapped around your function/variable names, check

1. Is the method signature between .cu and .cuh, as well as between definition and caller to that function are consistent

2. If this method is in declared in a .h but defined a .cpp file and not inline, and you only #include the .h file, u have to either move it into the header file or make it inline

No comments:

Post a Comment