rearchitect pointer allocation on gpus for ndarrays