warp icon indicating copy to clipboard operation
warp copied to clipboard

String arguments to a kernel launch

Open nithinsomu opened this issue 2 years ago • 1 comments

Is it possible to pass string type arguments as inputs in wp.launch()? Warp throws an error when I try to do it. "RuntimeError: Error launching kernel, unable to pack kernel parameter type <class 'str'> for param bc, expected <class 'str'>"

nithinsomu avatar Mar 21 '23 22:03 nithinsomu

Thanks @nithinsomu, unfortunately this is expected at present.

I will add a task for us to address this for the next version.

Best, Miles

mmacklin avatar Apr 25 '23 00:04 mmacklin

This feature fell off the radar, but if @nithinsomu or anyone else is interested in the feature, we would appreciate clarification on what is expected to be done with the string inside the kernel. Are you planning to do string comparisons, print the string, etc.?

shi-eric avatar Jan 28 '25 22:01 shi-eric