cuda.bindings._v2.driver.memset_d16_async#

cuda.bindings._v2.driver.memset_d16_async(
uint64_t dst_device,
unsigned short us,
size_t n,
intptr_t h_stream,
)#

Sets device memory.

Sets the memory range of n 16-bit values to the specified value us. The dst_device pointer must be two byte aligned.

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

  • us (unsigned short) – Value to set.

  • n (size_t) – number of elements.

  • h_stream (intptr_t) – Stream identifier.

See also

cuMemsetD16Async