Seems like we are not able to use template metaprogramming in kernel code? NVRTC complains about the following:
template <int K>
__device__ void foo() {
int array[K];
// something else;
}
Seems like we are not able to use template metaprogramming in kernel code? NVRTC complains about the following:
template <int K>
__device__ void foo() {
int array[K];
// something else;
}
There are a number of template device functions inside the OptiX SDK include folder and SDK examples.