cubecl_hip_sys

Function hipMemsetD16Async

Source
pub unsafe extern "C" fn hipMemsetD16Async(
    dest: hipDeviceptr_t,
    value: c_ushort,
    count: usize,
    stream: hipStream_t,
) -> hipError_t
Expand description

@brief Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.

hipMemsetD16Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

@param[out] dest Data ptr to be filled @param[in] value Constant value to be set @param[in] count Number of values to be set @param[in] stream Stream identifier @return #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized