|
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*. | |
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.
Inherits cuda::std::span construction (pointer + size, range, etc.).
Definition at line 21 of file device_span.cuh.
|
inlineexplicitconstexprnoexcept |
Implicit widening from device_span<U> where U* converts to T*.
For example, device_span<int> to device_span<const int>.
Definition at line 31 of file device_span.cuh.