impl Send/Sync for CudaDevice
coreylowman opened this issue · comments
unsafe impl Send for CudaDevice {}
unsafe impl Sync for CudaDevice {}
is all that is needed.
It doesn't work out of the box because CudaDevice has raw pointers from the sys api.
This is also needed for CudaSlice/CudaBlas etc