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.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Variadic templates? | 4 | 1607 | March 25, 2013 | |
function pointers | 8 | 10730 | June 15, 2007 | |
CUDA 3.1 device printf? ...does not work at all... | 8 | 5535 | June 30, 2010 | |
C++11 in CUDA: Variadic Templates | 6 | 672 | August 18, 2015 | |
device function pointers | 0 | 553 | January 25, 2012 | |
cuda (2.2, 2.3, 3.0 beta) and gcc 4.4 | 0 | 1671 | January 26, 2010 | |
Is this correct way to code function pointers? | 4 | 2482 | March 12, 2009 | |
Device function pointers | 2 | 1613 | August 14, 2010 | |
Function pointers in CUDA? | 7 | 9565 | February 10, 2010 | |
Does CUDA support virtual function? | 8 | 3298 | October 24, 2011 |