cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

Support converting arbitrary objects to `StridedMemoryView` in `cuda.core.launch()`

Open leofang opened this issue 3 months ago • 1 comments

leofang avatar Nov 20 '25 22:11 leofang

During the meeting today, the suggestion made by @kkraus14 was that we should insert a conversion to StridedMemoryView to the end of the loop in ParamHolder so that it is tried and this code

launch(s, config, ker, a)

is legal too, in addition to

launch(s, config, ker, a.data.ptr)

when a is a CuPy array. However, the exact type on the device side will have to be specified in this case (xref: #1281, #748).

leofang avatar Nov 21 '25 05:11 leofang