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

SDR and probably other routed models have int32 limitations #1431

Closed
phargogh opened this issue Oct 19, 2023 · 1 comment · Fixed by #1434 or #1521
Closed

SDR and probably other routed models have int32 limitations #1431

phargogh opened this issue Oct 19, 2023 · 1 comment · Fixed by #1434 or #1521
Assignees
Labels
bug Something isn't working

Comments

@phargogh
Copy link
Member

In natcap/pygeoprocessing#351, we fixed an issue in MFD routing where rasters that had over 2^32 pixels, there would be an indexing issue and a related nodata comparison issue.

These problems with indexing also apply to all of the InVEST models that use MFD, which include SDR, NDR and SWY. @jagoldstein encountered this issue in SDR specifically (see logfile below), but we should fix the issue for all of the routed models as well.

This is important for the GEF work.

InVEST-natcap.invest.sdr.sdr-log-2023-10-17--14_22_25.txt

@phargogh phargogh added bug Something isn't working in progress This issue is actively being worked on labels Oct 19, 2023
@phargogh phargogh self-assigned this Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
This comes at a near-doubling of required stack memory (and some heap
memory), but it should be OK for most users.  RE:natcap#1431
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 19, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
This way pip will perform scm-based package installation like normal
with whatever extra dependencies it needs.

RE:natcap#1431
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
… version incompatibility that I encountered in github actions. RE:natcap#1431
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
phargogh added a commit to phargogh/invest that referenced this issue Oct 24, 2023
A compiler will be needed to build from source.

RE:natcap#1431
phargogh added a commit to phargogh/invest that referenced this issue Oct 25, 2023
@davemfish davemfish removed the in progress This issue is actively being worked on label Nov 20, 2023
phargogh added a commit to phargogh/invest that referenced this issue Jan 30, 2024
phargogh added a commit to phargogh/invest that referenced this issue Feb 1, 2024
phargogh added a commit to phargogh/invest that referenced this issue Feb 1, 2024
phargogh added a commit to phargogh/invest that referenced this issue Feb 1, 2024
phargogh added a commit to phargogh/invest that referenced this issue Feb 1, 2024
We are overflowing the int32 space, so the flat_index of a pixel in the
processing queue is overflowing int32 (the type of the stack).

RE:natcap#1431
phargogh added a commit to phargogh/invest that referenced this issue Feb 1, 2024
phargogh added a commit to phargogh/invest that referenced this issue Feb 2, 2024
@phargogh
Copy link
Member Author

phargogh commented Feb 6, 2024

This came back up with a Colombia SDR run once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment