Skip to main content

hipMemsetD2D8

Function hipMemsetD2D8 

Source
pub unsafe extern "C" fn hipMemsetD2D8(
    dst: hipDeviceptr_t,
    dstPitch: usize,
    value: c_uchar,
    width: usize,
    height: usize,
) -> hipError_t
Expand description

@brief Fills 2D memory range of ‘width’ 8-bit values synchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row. @param[in] dst Pointer to device memory @param[in] dstPitch Pitch of dst device pointer @param[in] value value to set @param[in] width Width of row @param[in] height Number of rows @returns #hipSuccess, #hipErrorInvalidValue