Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocations during forward map of IFGFOp #25

Closed
maltezfaria opened this issue Mar 9, 2022 · 1 comment
Closed

Allocations during forward map of IFGFOp #25

maltezfaria opened this issue Mar 9, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@maltezfaria
Copy link
Member

As per the discussion with @cbauinge, it would be nice to pre-allocate all the
necessary memory for IFGF operator so that the foward map is allocation-free.
To do this, we have to:

  1. Find the largest number interpolation coefficients needed at any level of the
    source tree
  2. Pre-allocate two buffers of that size to keep the interpolation
    values/coefficients of two consecutive levels.

If properly done, this should allow (I think) for an allocation-free forward
map. The other advantage is that we can have an a priori upper bound on the maximum
memory required, and so will not run out of memory during the computation of a
matrix/vector product.

@maltezfaria maltezfaria added the enhancement New feature or request label Mar 9, 2022
@maltezfaria
Copy link
Member Author

Done in #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant