Template function calls to other functions
问题 I understand the template functions usually are to be declared and defined in header files. The problem I am having is that my template function makes calls to other functions. The prototypes of those other functions are in the same header file before the template function itself. That portion of the code: //header.h template <int ignoreAdetection> __global__ void MCMLKernel(SimState d_state, GPUThreadStates tstates) { // photon structure stored in registers PhotonStructGPU photon; // random