Official Github repository HSA-Runtime-AMD enumerates unimplemented functionality of the runtime.
To make debugging easier, we would really appreciate to support debugtrap instruction and exception
operations. It's quite common for me to generate a wrong code which generates a page fault.
[ 141.583810] AMD-Vi: Event logged [IO_PAGE_FAULT device=00:01.0 domain=0x0003 address=0x0000000000000c40 flags=0x0005]
[ 143.586801] kfd: qcm fence wait loop timeout expired
It would really help us if were are notified about an instruction which produces the exception.
When do you plan to implement these features?
I cannot make an official statement regarding when the debugtrap instruction will be added, but currently there are plans to add it sometime this year.