-
Notifications
You must be signed in to change notification settings - Fork 48
Compilation options
Brian Lau edited this page May 23, 2017
·
2 revisions
Compilation options can be set by passing flags to the compile method. Options are documented in section B.6 of the CmdStan manual. The current configuration can be obtained by calling config:
model = StanModel();
model.config()
--------------------------------------------------------------------------------
CmdStan help for developers:
Current configuration:
- OS (Operating System):
- CC (Compiler): g++
- Compiler version: 4.2
- O (Optimization Level): 3
- O_STANC (Opt for stanc): 0
- TEMPLATE_DEPTH: 256
Library configuration:
- EIGEN stan_2.15.0/lib/stan_math_2.15.0/lib/eigen_3.2.9
- BOOST stan_2.15.0/lib/stan_math_2.15.0/lib/boost_1.62.0
- GTEST stan_2.15.0/lib/stan_math_2.15.0/lib/gtest_1.7.0
--------------------------------------------------------------------------------
Single options for compiling a model can be passed as strings following the keyword `model':
S.compile('model','O=0')
Multiple flags can be passed as a cell array:
S.verbose = true;
S.compile('model',{'O=0' 'CC=clang++'});
compile: --- Linking C++ model ---
compile: clang++ -I src -I stan_2.15.0/src -isystem stan_2.15.0/lib/stan_math_2.15.0/ -isystem
stan_2.15.0/lib/stan_math_2.15.0/lib/eigen_3.2.9 -isystem stan_2.15.0/lib/stan_math_2.15.0/lib/boost_1.62.0
-isystem stan_2.15.0/lib/stan_math_2.15.0/lib/cvodes_2.9.0/include -Wall -DEIGEN_NO_DEBUG
-DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12
-DNO_FPRINTF_OUTPUT -pipe -Wno-unused-function -Wno-tautological-compare -Wno-c++11-long-long
-ftemplate-depth=256 -O0 -o /Users/brian/Documents/Code/Repos/MatlabStan/Tests/anon_model
src/cmdstan/main.cpp -include /Users/brian/Documents/Code/Repos/MatlabStan/Tests/anon_model.hpp
stan_2.15.0/lib/stan_math_2.15.0/lib/cvodes_2.9.0/lib/libsundials_nvecserial.a
stan_2.15.0/lib/stan_math_2.15.0/lib/cvodes_2.9.0/lib/libsundials_cvodes.a