eyalroz / cuda-api-wrappers

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

Use explicit cast and correct types for write_single_value #516

Closed eyalroz closed 1 year ago

eyalroz commented 1 year ago

Our stream_t::enqueue_t::write_single_value() implementation implicitly casts a pointer into a CUdeviceptr, and checks for int32_t and int64_t despite the available implementations using uint32_t and uint64_t. Let's fix that.