coreylowman / cudarc

Safe rust wrapper around CUDA toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are cuda device pointers only valid for the device they were allocated onto?

coreylowman opened this issue · comments

This would be a good justification for ordinal as a const generic on both CudaSlice/CudaDevice.

Originally posted by @M1ngXU in #6 (comment)

Yes. We've included ordinal in the device, and expect users of the crate to ensure this.