Make correct checking of the returned hipDeviceptr_t from read_global… [ROCm/clr commit: 0bafc38135]
0bafc38135