ComputationalRadiationPhysics / redGrapes

Resource-based, Declarative task-Graphs for Parallel, Event-driven Scheduling :grapes:
https://redgrapes.rtfd.io
Mozilla Public License 2.0
20 stars 5 forks source link

only allocate memory if needed #50

Closed psychocoderHPC closed 10 months ago

psychocoderHPC commented 10 months ago

On the first allocation in chunk_list the first chunk will be added only if needed. This prevents memory is allocated if no allocation is required.

This PR is addressing the comment: https://github.com/michaelsippel/redGrapes/pull/1#discussion_r1425310896