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

QGIS r.sun.insoltime is CPU locked? #3487

Open
Case2903 opened this issue Mar 11, 2024 · 2 comments
Open

QGIS r.sun.insoltime is CPU locked? #3487

Case2903 opened this issue Mar 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Case2903
Copy link

Hello,

I am trying to run r.sun for a large project, the process is very slow and it runs on CPU only. Is there a way to speed up the process? maybe enabling GPU for processing. is this possible or is this kind of algorithm CPU locked?

@Case2903 Case2903 added the enhancement New feature or request label Mar 11, 2024
@veroandreo
Copy link
Contributor

Are you running it within QGIS? AFAIK, not all module options seem to be enabled there.

Note that the native GRASS GIS r.sun command has the nprocs options that allows to set a number of parallel processes and the npartitions option to split the data in chunks.

@neteler
Copy link
Member

neteler commented Mar 11, 2024

Yes, CPU parallelization based on openMP has been available for some time in r.sun.

However, in the QGIS wrapper script r.sun.insoltime.txt the parameter "nproc" is yet missing. It would be sufficient to (locally) add this line, so in your local installation you could simply add it:

*QgsProcessingParameterNumber|nprocs|Number of threads which will be used for parallel computing|QgsProcessingParameterNumber.Integer|1|True|1|None

(I have tested this change successfully on my local Fedora box).

The sustainable solution would be to add this parameter in QGIS via a pull request, editing the file:

https://github.com/qgis/QGIS/blob/master/python/plugins/grassprovider/description/r.sun.insoltime.txt

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

3 participants