[devfunc] Add necessary `__device__` and `__host__` attributes. [ROCm/hip commit: d82d6b499e]
d82d6b499e