gstat
gstat copied to clipboard
multicores in `variogramST`
I use the function of variogramST
.
In this function, number of cores to use in parallel can be determined using cores =
.
However, even though I specify the number of cores, it seems only one core is used.
I use Windows10.
Is there anything to prepare to use multicores before I specify cores =
in variogramST
?
The futures package is used for this; please consult it's documentation.
I tried to figure out this problem with not only Windows but also Mac and Linux.
However, core =
did not work to use multicores.
Since future
package works with my PC environment, I would like you to examine if multicore process really works in gstat
package.
It works for me.
Mac, Rstudio?
Linux, R.
It isn't working for me either. I looked into the R source code and, for STIDF objects, the cores
parameter is not being passed from variogramST
to variogramST.STIDF
here. I tweaked the source code by adding cores=cores
at line 102 and after rebuilding the package it's now parallelizing for me.
Like that?
Yes, exactly. Thank you!
Thank you for the new information.
@edzer
Did you change the source code in the gstat
package?
From the package, it has not worked for me...
I changed it on GitHub, so you'd have to install it from there.
Thank you. I could.