/*Device code */ #ifndef _MY_KERNEL_H_ #define _MY_KERNEL_H_ //----------------------------------------------------------------------------------------------------- template __global__ void my_kernel ( float *odata, float *idata); template<> __global__ void my_kernel<3>( float *odata, float *idata) { } template<> __global__ void my_kernel<4>( float *odata, float *idata) { } //----------------------------------------------------------------------------------------------------- #endif