PMF Ground Classification Multithreading? #746
-
Hello all, I am running a ground classification with the PMF algorithm.
A colleague tells me she has been able to run this on multiple threads but I cannot replicate her results, something like:
From the docs, I can use
Our script is the same. I have used Thank you, looking forward to any advice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Good question. According to the source code it is not parallelized so About your colleague, I don't know. I swear there is no parallelization directive in the code. |
Beta Was this translation helpful? Give feedback.
-
Jean-Romain, Thank you for your quick response. Is parallelizing this code something that I could do as a user? I am proficient in R but have no experience with writing or editing packages. Alternatively, I see in the docs that parallelization is made possible through a
If I were to use the above code, replacing Best, |
Beta Was this translation helpful? Give feedback.
It is probably a single line of code to change in the c++ source code here
lidR/src/LAS.cpp
Line 142 in 5a5a3a5
But we must ensure it is really parallelizable first.
You will read, classify and write multiple files simultaneously. It will very likely be more performant if done properly; don't use all cores, ensure your computer has enough memory, stuff like that. 64 GB is a lot but lidR is far from optimal in terms of memor…