XRT icon indicating copy to clipboard operation
XRT copied to clipboard

VITIS-11112 HIP Binding: Memory Management.

Open zhangchiming opened this issue 1 year ago • 0 comments

Problem solved by the commit

  1. returning wrong hip mem object when input address is 0
  2. 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

  1. return correct result in hip mem object look up from 0 address.
  2. 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.

zhangchiming avatar May 03 '24 19:05 zhangchiming