Expand description
Runtime-API 2-D memory copies + pitched device allocations.
Mirrors [baracuda_driver::memcpy2d]. PitchedBuffer<T> owns a
2-D device allocation with driver-chosen row stride; free functions
handle host ↔ pitched-device copies.
Structs§
- Pitched
Buffer - A pitched device allocation —
height × width_elemsgrid ofTs with driver-chosenpitch_bytes ≥ width_elems * size_of::<T>().
Functions§
- copy_
d_ to_ h_ 2d - Synchronous pitched-device → host 2-D copy.
- copy_
h_ to_ d_ 2d - Synchronous host → pitched-device 2-D copy.
srcholdsheightrows ofwidth_elemsTs startingsrc_host_pitch_bytesapart. - copy_
h_ to_ d_ 2d_ async - Async variant of
copy_h_to_d_2d. - memset_
2d - 2-D memset: fill a pitched region with byte
value. - memset_
2d_ async - Async 2-D memset on
stream.