How to realloc memory in GPU?

CUDA stopped supporting Mac OS a number of years ago (somewhere around 2018). See here.