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

Performance improvement #4

Open
mardukbp opened this issue Sep 19, 2019 · 0 comments
Open

Performance improvement #4

mardukbp opened this issue Sep 19, 2019 · 0 comments

Comments

@mardukbp
Copy link

In the appendix of the documentation it can be seen that fitting the model m1 takes 202 minutes.

Using the optimParallel package running on pqR (instead of GNU R) with 8 cores (Amazon EC2 t3.2xlarge) this model was fitted in 26 minutes.

If you want to experiment with this, do the following:

git clone https://github.com/mardukbp/optimParallel
git clone https://github.com/mardukbp/oSCR.git -b optimParallel
git clone https://github.com/mardukbp/pqR.git -b all-patches

Compile pqR as usual: ./configure && make.

Install the R packages in pqR:

deps <- c("abind", "doParallel", "gdistance", "Formula", "FNN")
sapply(deps, function(x) if(!require(x, character.only=TRUE)) install.packages(x))

setwd(“/path/to/packages”)

install.packages(“optimParallel", repos=NULL, type="source")
install.packages("oSCR", repos=NULL, type="source")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant