libocca / occa

Portable and vendor neutral framework for parallel programming on heterogeneous platforms.
https://libocca.org
MIT License
382 stars 81 forks source link

Reduce max modeMemory usage of modeMemoryPool_t::resize #748

Open stgeke opened 3 months ago

stgeke commented 3 months ago

The current implementation uses 'modeMemory' for both the new and old pool. While this method allows for fast data copying, it also results in high memory usage. This can be tricky in cases where we're running short on device memory. We might want to think about adding an option to stage it through to lower the maximum memory usage.