|
cuSBF
|
A span that is assumed to point to device-accessible memory. More...
Public Member Functions | |
| template<typename U > requires std::is_convertible_v<U (*)[], T (*)[]> | |
| constexpr | device_span (device_span< U > other) noexcept |
Implicit widening from device_span<U> where U* converts to T* (e.g. | |
A span that is assumed to point to device-accessible memory.
Layout-identical to cuda::std::span<T> so it can be passed to kernels by value.
The distinct type prevents accidentally mixing host and device pointers at compile time.
Definition at line 19 of file device_span.cuh.
|
inlineexplicitconstexprnoexcept |
Implicit widening from device_span<U> where U* converts to T* (e.g.
device_span<int> to device_span<const int>).
Definition at line 26 of file device_span.cuh.