cuda.bindings._v2.driver.memset_d2d32_v2#

cuda.bindings._v2.driver.memset_d2d32_v2(
uint64_t dst_device,
size_t dst_pitch,
unsigned int ui,
size_t width,
size_t height,
)#

Initializes device memory.

Sets the 2D memory range of width 32-bit values to the specified value ui. 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 four 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).

  • ui (unsigned int) – Value to set.

  • width (size_t) – width of row.

  • height (size_t) – Number of rows.

See also

cuMemsetD2D32_v2