[devfunc] Add necessary `__device__` and `__host__` attributes. [ROCm/clr commit: 11972049c6]
11972049c6