[iOS GPU] Add debug information to track memory allocation exception (#59112)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59112
ghstack-source-id: 130027273
Test Plan: CI
Reviewed By: linbinyu
Differential Revision: D28730604
fbshipit-source-id: 2ec7ca1b722a9fe496635cb6eea7e0d88b0c18b1