XRT
XRT copied to clipboard
VITIS-11112 HIP Binding: Memory Management.
Problem solved by the commit
- returning wrong hip mem object when input address is 0
- crash when trying to set xrt::bo object from 0 address as kernel argument
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered crash was discovered in developing unit test cases
How problem was solved, alternative solutions (if any) and why they were rejected
- return correct result in hip mem object look up from 0 address.
- allow host app feed 0 as kernel argument.
Risks (if any) associated the changes in the commit None. Code will only be built with switch "-hip".
What has been tested and how, request additional testing if necessary Compiled and tested on Ubuntu 22.04 (running on Ryzen 7840).
Documentation impact (if any) None.