This PR introduces withMemoryLimit() option in TornadoVM's execution plan. With this feature, the API provides the means to execute a TaskGraph only if fullfil specific memory constraints.
The use of the withMemoryLimit() will cause TornadoVM to throw an OutOfMemoryException in order to resize its buffers or increase the device memory limit or use the batch processing utilities.
Description
This PR introduces
withMemoryLimit()
option in TornadoVM's execution plan. With this feature, the API provides the means to execute a TaskGraph only if fullfil specific memory constraints.The use of the
withMemoryLimit()
will cause TornadoVM to throw an OutOfMemoryException in order to resize its buffers or increase the device memory limit or use the batch processing utilities.Backend/s tested
Mark the backends affected by this PR.
OS tested
Mark the OS where this PR is tested.
How to test the new patch?