cuda.bindings._v2.driver.memset_d2d16_v2#
- cuda.bindings._v2.driver.memset_d2d16_v2(
- uint64_t dst_device,
- size_t dst_pitch,
- unsigned short us,
- size_t width,
- size_t height,
Initializes device memory.
Sets the 2D memory range of
width16-bit values to the specified valueus.heightspecifies the number of rows to set, anddst_pitchspecifies the number of bytes between each row. Thedst_devicepointer anddst_pitchoffset must be two byte aligned. This function performs fastest when the pitch is one that has been passed back bycuMemAllocPitch().- Parameters:
dst_device (uint64_t) – Destination device pointer.
dst_pitch (size_t) – Pitch of destination device pointer(Unused if
heightis 1).us (unsigned short) – Value to set.
width (size_t) – width of row.
height (size_t) – Number of rows.
See also
cuMemsetD2D16_v2