coreylowman / cudarc

Safe rust wrapper around CUDA toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`sync_copy_from` - also accept vector

M1ngXU opened this issue · comments

A function that also accepts a vector would be great as the cudaslice-sizes might be dynamic and it then requires more boilerplate code to actually create a correctly sized slice.

or actually returning a vector would be great too

Does there is dev.take_async which takes a Vec, and sync_release for returning a vec, do those work?

hmm, but what if you only want to copy it out and not destroy the slice? also, i don't think that the function names are very clear ...

Yeah good point. Any suggestions for naming? Definitely open to suggestions!

sync_copy_into_vec 😅

maybe add the documentation label & rename this issue (or close this one and create a new one?)