bheisler / RustaCUDA

Rusty wrapper for the CUDA Driver API
Apache License 2.0
758 stars 60 forks source link

Slightly loosen DeviceCopy bounds #50

Open samsartor opened 3 years ago

samsartor commented 3 years ago

PhantomData<T> should be DeviceCopy for all T since it is a ZST and no T will actually need to be copied. UnsafeCell<T> is a ABI-transparent wrapper type which should be DeviceCopy for all T: DeviceCopy.

I may throw more into this PR later but these are just the first two things I stubbed my toe on trying to improve the soundness of my path tracer kernel.

(this crate + ptx_builder is awesome BTW)

samsartor commented 3 years ago

The CI failure seems unrelated?