Hi All,
These are all benchmarks of a model I’m working on:
mid-2013 1.3Ghz Intel MacBook Air: ~490 seconds
M1 MacBook Pro under Rosetta 2: ~240 seconds
M1 MacBook Pro native Arm: ~125 seconds.
It seems like going native arm64 is worth the hassle!
Kind wishes,
Nico
This is what I did to make it work:
In the Terminal.app, not the terminal window in RStudio
cd ~
git clone --recursive https://github.com/stan-dev/cmdstan.git
cd cmdstan/stan/lib/stan_math
git remote add nicokist git@github.com:nicokist/math.git
git pull nicokist bigsur_arm64
git checkout bigsur_arm64
cd ../../..
make build
in R:
library(cmdstanr)
set_cmdstan_path('~/cmdstan/')
cmdstanr::cmdstan_make_local(cpp_options = list(CXX="arch -arch arm64e clang++"))
cmdstanr_example(example = 'schools_ncp')