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

Enormous unnecessary memory allocation #638

Closed
baggepinnen opened this issue Nov 28, 2023 · 1 comment
Closed

Enormous unnecessary memory allocation #638

baggepinnen opened this issue Nov 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@baggepinnen
Copy link
Contributor

The allocation of dense hessians of individual entries of a constraint vector taking place here

Matrix{T}[zeros(T, 0, 0) for i in 1:num_cons] # No need to allocate this up if using lag hessian

can easily lead to OOM errors for large problems, while allocation of a dense Lagrangian hessian only would be no problem.

@baggepinnen baggepinnen added the bug Something isn't working label Nov 28, 2023
@baggepinnen
Copy link
Contributor Author

Hmm, it seems my lagh was provided in the wrong way and wasn't registered, the large arrays should not be allocated if the lagh prototype is passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant