Open rok-cesnovar opened 2 years ago
I am not 100% how that plays with installing cmdstan as part of a script that is not interactive (for example for CI). This is my only worry really. I don't want to break existing scripts obviously.
We can use interactive()
to check, see https://stat.ethz.ch/R-manual/R-devel/library/base/html/interactive.html
From the discourse thread https://discourse.mc-stan.org/t/speedup-by-using-external-blas-lapack-with-cmdstan-and-cmdstanr-py/25441/29
When interactive()=TRUE
we could ask
Optimization:
Threads:
BLAS/LAPACK:
Thanks. Just adding to a line so we dont forget to mention:
Multithread: If you are using reduce_sum or want to always use the single executable multi-chain approach?
(when we add this, which should be soon now).
Bumping this up, as it seems a bit silly that now cmdstan_install()
compiles and after that proposes to copy make/local
and requiring re-compilation. With interactive option, the installation could ask whether make/local
is copied before compilation.
As @avehtari suggested, we could ask users a few things during installation to add additional compile flags.
For example:
Also, add an option to skip interaction with yes/no to all.
I am not 100% how that plays with installing cmdstan as part of a script that is not interactive (for example for CI). This is my only worry really. I don't want to break existing scripts obviously.