mercredi 28 février 2018

Idiom for CUDA class static member in device code?

So, I've got a C++14 library that I'm porting to CUDA 9. I actually have (I think) a pretty good knowledge of CUDA, but I haven't done any direct work in it since CUDA 6.

Typically, I use a lot of templates and small classes in my code. It's surprised me that one still cannot have a static __device__ class member in CUDA 9, but global variables are fine. Is there a good idiom or workaround for this? What do people typically do?

Aucun commentaire:

Enregistrer un commentaire