In the last several weeks, I have debugged and root caused numerous issues and fragility with respect to using the RTC/comgr APIs. Typical of compiler embedding, there is much that can go wrong.
We lack a real good torture test suite for this, and I recommend writing a non trivial rocm-examples project for exercising it in anger... concurrent, failure cases, weird load ordering, etc.
I've been using the rocFFT AOT helper for some of this but that isn't great for validating things in the field as a user of the system would.