Skip to content

patch superlu memory query#221

Open
Copper280z wants to merge 2 commits intoMystranSolver:devfrom
Copper280z:fix/superlu_mem_print
Open

patch superlu memory query#221
Copper280z wants to merge 2 commits intoMystranSolver:devfrom
Copper280z:fix/superlu_mem_print

Conversation

@Copper280z
Copy link
Copy Markdown
Contributor

Superlu uses a signed into to calculate the memory requirements. This leads to a signed overflow for any memory usage above ~4GB and there's no case for a memory estimate needing a signed integer so I patched the calculation to use a size_t instead (on line 102) and added it to the superlu patch folder.

Superlu calculates memory usage in bytes as an int, this can overflow
for many valid cases. There's no need to use a signed integer for these,
so the real change is on line 102 to use a size_t instead of int.
@Copper280z Copper280z closed this Apr 30, 2026
@Copper280z Copper280z reopened this Apr 30, 2026
@Copper280z Copper280z changed the base branch from main to dev April 30, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant