Skip to content

Instantly share code, notes, and snippets.

@bschneidr
Last active September 30, 2024 04:08
Show Gist options
  • Save bschneidr/dbc2eb6a1e64d6408ef3281bb2c589d1 to your computer and use it in GitHub Desktop.
Save bschneidr/dbc2eb6a1e64d6408ef3281bb2c589d1 to your computer and use it in GitHub Desktop.
Install cmdstanr with WSL and OpenBLAS
sudo apt-get install libopenblas-dev
sudo apt-get install liblapacke-dev
sudo apt-get install liblapacke
sudo apt-get install libopenblas-serial-dev
sudo apt-get install libopenblas0-serial
sudo apt-get install libopenblas0
cpp_options = list("CXXFLAGS += -march=native -mtune=native -DEIGEN_USE_BLAS -DEIGEN_USE_LAPACKE", 
                   "LDLIBS += -lblas -llapack -llapacke")

cmdstanr::install_cmdstan(
  cores = 6,
  wsl   = TRUE,
  cpp_options = cpp_options
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment