You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(size_t i = 0; cudaFuncGetParamInfo(func, i, ¶m_offset, ¶m_size) != CUDA_ERROR_INVALID_VALUE; i++) {}
// i now contains the total number of arguments to your kernel.
This is a handy approach as suggested by @galv since the driver does not expose any queryable APIs for this purpose:
Originally posted by @galv in #543 (reply in thread)