How to efficiently manage memory for both iGPU and GPU?