cuda.bindings._v2.driver.memset_d2d8_async#

cuda.bindings._v2.driver.memset_d2d8_async(
uint64_t dst_device,
size_t dst_pitch,
unsigned char uc,
size_t width,
size_t height,
intptr_t h_stream,
)#

Sets device memory.

Sets the 2D memory range of width 8-bit values to the specified value uc. height specifies the number of rows to set, and dst_pitch specifies the number of bytes between each row. 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).

  • uc (unsigned char) – Value to set.

  • width (size_t) – width of row.

  • height (size_t) – Number of rows.

  • h_stream (intptr_t) – Stream identifier.

See also

cuMemsetD2D8Async