Open nayakajay opened 2 years ago
Kernel parameters must be specified via kernelParams. If f has N parameters, then kernelParams needs to be an array of N pointers. Each of kernelParams[0] through kernelParams[N-1] must point to a region of memory from which the actual kernel parameter will be copied. The number of kernel parameters and their offsets and sizes do not need to be specified as that information is retrieved directly from the kernel's image.
Tool: 1.5.3
I was looking at
generated_cuda_meta.h
and saw that cuLaunchKernel_params has a member calledvoid ** kernelParams
. I am understanding that this is to read arguments passed to the kernel. For example,kernelParams
should give me a way to read and get information aboutabc
,def
, andghi
, such as if it's a scalar likeint
or a pointer type, and their corresponding values. I couldn't find any example to get this done? Can you give some examples? If I am looking at completely wrong place, can you point me towards which struct to check, possibly with some examples?