-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
[Bug] t.rast.aggregate fails when GUI Settings → Number of threads for parallel computing set to more than 1 with active processing mask #4708
Comments
Thanks for your report @Falconus. If you only use commands, i.e., set the nprocs parameter in t.rast.aggregate instead of via GUI, does it also fail? Would you mind creating a command line reproducible example with North Carolina dataset? |
Using the time series dataset from the Data page:
|
I think this is the same as is #4297. There may be other tools impacted. |
Yes, I guess e.g. t.rast.series is affected the same way. But virtually every Python module that uses OpenMP parallelized modules under the hood would be affected. Ideally, this is fixed in the Python modules, I guess. We could probably create a library function that:
Not sure if case b could be written to find an optimal balance between inner and outer processes. We use a very simplistic approach for something like this here: |
I need to think this through more, but it seems to me there are 2 separate issues, one needs to be fixed in the C tools (#4297) and the other one is how to deal with the nprocs parameter in the python temporal tools (and there is also the environment variable). |
Description
When attempting to run the t.rast.aggregate tool with a mask, it fails when the number of threads for parallel computing is set to >1 in the GUI settings (Settings → Preferences). When it is reset to 1 and saved, the tool works as expected with no errors. When the mask is removed, it also works with no errors.
To reproduce
t.rast.aggregate --overwrite input=uas_dsm@assignment5b output=uas_dsm_aggr basename=uas_dsm_aggr suffix=time granularity=1 months nprocs=1
. The nprocs flag had no effect, regardless of whether it was set at 1 or 16.Expected behavior
Tool should not fail due to mask if default nprocs are set to >1.
Screenshots
System description
Workaround
Set the default nprocs to 1 or remove the mask for the t.rast.aggregate step.
The text was updated successfully, but these errors were encountered: