Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Created April 1, 2021 09:55
Show Gist options
  • Save remlapmot/3812699c48d65b6e07e9caa8211c75f4 to your computer and use it in GitHub Desktop.
Save remlapmot/3812699c48d65b6e07e9caa8211c75f4 to your computer and use it in GitHub Desktop.
rstan Windows configuration
dotR <- file.path(Sys.getenv("HOME"), ".R")
if (!file.exists(dotR)) dir.create(dotR)
M <- file.path(dotR, "Makevars.win")
if (!file.exists(M)) file.create(M)
cat("\n CXX14FLAGS += -mtune=native -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2",
file = M, sep = "\n", append = FALSE)
@remlapmot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment