I am implementing a library that heavily uses templates.
I then started working from the simpleTemplates example, until I discovered that CUDA and STL are not compatible (exceptions are disabled by nvcc, even in the host code).
To see the problem, try to use std::vector anywhere in the simpleTemplates.cu file.
Usually, this is not a problem since the kernels are declared extern, but this is not possible when using templates.
So I have two question :
- will we be able to use nvcc and the stl together? This means that nvcc would have to support exceptions in the host code, I think.
- Is there another way to mix CUDA templates and the STL? Maybe via the driver API?
Happy new year to all!