coreylowman / cudarc

Safe rust wrapper around CUDA toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`take_async` should only accept `Send` or `Sync` types

M1ngXU opened this issue · comments

I accidently passed &mut u8 instead of u8 and got weird errors. The data of the borrow can't be ensured to be valid and probably can't be accessed too. Not sure weather we have to restrict T to Send or Sync (or maybe even something else).

You mean you passed Vec<&mut u8>? Can you post minimal example/errors?

there is no error, it's just if you have CudaSlice<&mut u8> but your kernel code accepts unsigned char, then you will have weird values