[ROCm] add reserved gpu memory for rocm libraries with overflow check
This PR has added reserved gpu memory for rocm libraries with an overflow check at size_t to int64_t, which can help us easily to debug overflow in the further.

Thanks!

/cc @cheshire