Variadic Function in CUDA

Hi Everyone,

I am new to CUDA and trying to figure out whether CUDA 4.1 supports variadic functions. I found a forum showing how to use a printf statement, but I would like to create my own custom variadic function. Is that possible in CUDA 4.1? Let me know if you need more details.

Thanks in advance!

No, variadic device functions are not supported (they would be quite slow anyway). Overloading C++ functions using different argument list lengths is supported and provides a somewhat similar functionality. This is also how device side printf() is implemented.