The following code:
template<typename T, MyEnum K> __global__ void myKernel(const T a[]);
template<typename T> __global__ void myKernel<T,SomeValueOfMyEnum>(const T a[]) {
// implementation
}
Triggers the following error message:
error: an explicit template argument list is not allowed on this declaration
Why?
Notes:
- I'm pretty sure this isn't CUDA-related, just a C++ issue.
- There are a bunch of questions on partial specialization, but I can't figure out if mine is a dupe of any of them.