function parameter sizes for cuParamSetv

Hi, I am using the cu device interface only, and I want to do type checking with the parameters, since I’m making my own templated launch functions. Is there a way to get the sizes of each function parameter? I think there should be. The only way I can see is to parse the cubin file, get the function name
_globfunc__Z7testmemPiS

demangle Z7testmemPiS

testmem(int*, int*)

And then get the int* int*