Skip to content

Add uint16_t to SIZE_BYTES - #46

Merged
hackwa merged 2 commits into
Xilinx:mainfrom
snigdha-gupta:add-uint16_t-to-ize_bytes
Sep 1, 2026
Merged

Add uint16_t to SIZE_BYTES#46
hackwa merged 2 commits into
Xilinx:mainfrom
snigdha-gupta:add-uint16_t-to-ize_bytes

Conversation

@snigdha-gupta

@snigdha-gupta snigdha-gupta commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
  • Add "int16_t": 2 and "uint16_t": 2 to SIZE_BYTES so VAIML int16_t/uint16_t buffers are converted to bytes instead of falling through to the default of 1.
  • Unknown dtypes used SIZE_BYTES.get(dtype, 1), so layer with IFM (dtype=uint16_t, L2 [0, 0, 0, 50]) was dumped as 50 bytes. XRT reads 32-bit words, 50 is not a multiple of 4, and the XRT backend does not round down (the core-dump path does), so the driver returned EINVAL.
  • That showed up as RuntimeError: UNKNOWN(3222824010) IOCTL failed: Invalid argument (err=22) on the L2 dump

Signed-off-by: Snigdha Gupta <71372521+snigdha-gupta@users.noreply.github.com>
Signed-off-by: Snigdha Gupta <71372521+snigdha-gupta@users.noreply.github.com>
@hackwa
hackwa merged commit e38f2cd into Xilinx:main Sep 1, 2026
1 check passed
@snigdha-gupta
snigdha-gupta deleted the add-uint16_t-to-ize_bytes branch September 1, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants