raise warning if memory exceeds device alloc size in performance ex