-
-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
I set STAN_CPP_OPTIMS to TRUE but the model does not have STAN_CPP_OPTIMS in mod.exe_info()
build stan model
from cmdstanpy import CmdStanModel
import os
os.environ['CXXFLAGS'] = "-O3 -march=native"
cpp_options = {
'STAN_THREADS': 'TRUE',
'STAN_CPP_OPTIMS': 'TRUE',
}
mod = CmdStanModel(stan_file="xxx.stan",
cpp_options=cpp_options,
force_compile=True
)
mod.exe_info()
{'stan_version_major': '2',
'stan_version_minor': '36',
'stan_version_patch': '0',
'STAN_THREADS': 'true',
'STAN_MPI': 'false',
'STAN_OPENCL': 'false',
'STAN_NO_RANGE_CHECKS': 'false',
'STAN_CPP_OPTIMS': 'false'}
Metadata
Metadata
Assignees
Labels
No labels