yxsamliu wrote: CUID is needed for device static variable to be accessible on host side. Since the driver does not know whether device static variables are accessed on host side, it should always enable CUID for HIP. https://github.com/llvm/llvm-project/pull/84332