The template and cppIntegration examples in the CUDA SDK (version 3.1) use Externs to link function calls from the host code to the device code.
However, Tom's comment here indicates that the usage of extern is deprecated.
If this the case, what's the correct structure for a CUDA project such as the template example or cppIntegration example?