cuda.bindings._v2.driver.memset_d2d16_async#

cuda.bindings._v2.driver.memset_d2d16_async(
uint64_t dst_device,
size_t dst_pitch,
unsigned short us,
size_t width,
size_t height,
intptr_t h_stream,
)#

Sets device memory.

Sets the 2D memory range of width 16-bit values to the specified value us. height specifies the number of rows to set, and dst_pitch specifies the number of bytes between each row. The dst_device pointer and dst_pitch offset must be two byte aligned. This function performs fastest when the pitch is one that has been passed back by cuMemAllocPitch().

Parameters:
  • dst_device (uint64_t) – Destination device pointer.

  • dst_pitch (size_t) – Pitch of destination device pointer(Unused if height is 1).

  • us (unsigned short) – Value to set.

  • width (size_t) – width of row.

  • height (size_t) – Number of rows.

  • h_stream (intptr_t) – Stream identifier.

See also

cuMemsetD2D16Async