-
-
Notifications
You must be signed in to change notification settings - Fork 93
CmdStan makefile variables
Rok Češnovar edited this page Aug 7, 2022
·
5 revisions
-
STAN_THREADS
- Enable threading using Intel TBB by setting totrue
.
-
STAN_MPI
- Enable multiprocessing using MPI by setting totrue
. CXX - Set this variable to the name of the MPI wrapper of the C++ compiler, typicallympicxx
-
TBB_CXX_TYPE
- Set togcc
orclang
, depending on which compiler is called by the MPI wrapper. By default, set this variable togcc
on Linux andclang
on MacOS.
-
STAN_OPENCL
- Enable manycore processing using OpenCL by setting totrue
.
-
STAN_CPP_OPTIMS
- Enable C++ compiler and linker optimization recommended by Stan developers by setting totrue
. Enabling these optimization can significantly slow down compilation. -
STAN_NO_RANGE_CHECKS
- Setting this variable totrue
removes range checks from the model for faster runtime. Use this flag with caution and only once the indexing has been validated. In case of any unexpected behavior remove the flag for easier debugging.
-
STANCFLAGS
- Flags that are forwarded to the Stan-to-C++ compiler (stanc3).
-
STANC3
- Path to the stanc3 folder. If the folder is specified, the binaries will be copied from the given folder and built if necessary. -
STANC3_TEST_BIN_URL
- URL to download stanc3 binaries from. Used if specified and the STANC3 variable is not set. -
STANC3_VERSION
- If specified, determines the stanc3 version to be downloaded when (re)building CmdStan. The default version isnightly
. Can be used when using older Stan version with CmdStan. Is only used if the above two makefile variables are not specified and the release binaries are not present in thebin/
folder.