NVlabs / NVBit

198 stars 18 forks source link

What is the `offset` in void `nvbit_add_call_arg_launch_val64(const Instr* instr, int offset, bool is_variadic_arg = false)` #99

Open xinyi-li7 opened 1 year ago

xinyi-li7 commented 1 year ago

Hi,

In the function nvbit_add_call_arg_launch_val64 (const Instr, int offset, bool is_variadic_arg = false), I'm curious what the offset is.

For example, if I passed nvbit_set_at_launch( ctx, func, buf, n*sizeof(uint64_t));, and let offset=3, is it passing the fourth element of buf?

Besides, I can only use nvbit_set_at_launch once to pass one variable, right? That is I cannot call nvbit_set_at_launch twice to pass two variables.

Thanks.