eyalroz / cuda-api-wrappers

Thin, unified, C++-flavored wrappers for the CUDA APIs
BSD 3-Clause "New" or "Revised" License
766 stars 79 forks source link

Use is_trivially_copyable more, and instead of is_trivially_copy_constructible #642

Open eyalroz opened 4 months ago

eyalroz commented 4 months ago

The appropriate condition to check when memcpy'ing typed data is whether or not it is trivially copyable - not just trivially copy-ct'able. But we seem to be checking for the latter, if anything, in several places.