coreylowman / cudarc

Safe rust wrapper around CUDA toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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