For now, guard the __to_local function for device compile only since a local pointer should be same size as unsigned int on GPU compile. Also change to void* instead of char*. [ROCm/hip commit: 07de5cb334]
07de5cb334