-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1010 from stan-dev/add_model_info
Add `./model info` to obtain compile-time information
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef CMDSTAN_WRITE_STAN_FLAGS_HPP | ||
#define CMDSTAN_WRITE_STAN_FLAGS_HPP | ||
|
||
#include <stan/callbacks/writer.hpp> | ||
#include <string> | ||
|
||
namespace cmdstan { | ||
|
||
void write_stan_flags(stan::callbacks::writer &writer) { | ||
#ifdef STAN_THREADS | ||
writer("STAN_THREADS=true"); | ||
#else | ||
writer("STAN_THREADS=false"); | ||
#endif | ||
#ifdef STAN_MPI | ||
writer("STAN_MPI=true"); | ||
#else | ||
writer("STAN_MPI=false"); | ||
#endif | ||
#ifdef STAN_OPENCL | ||
writer("STAN_OPENCL=true"); | ||
#else | ||
writer("STAN_OPENCL=false"); | ||
#endif | ||
#ifdef STAN_NO_RANGE_CHECKS | ||
writer("STAN_NO_RANGE_CHECKS=true"); | ||
#else | ||
writer("STAN_NO_RANGE_CHECKS=false"); | ||
#endif | ||
#ifdef STAN_CPP_OPTIMS | ||
writer("STAN_CPP_OPTIMS=true"); | ||
#else | ||
writer("STAN_CPP_OPTIMS=false"); | ||
#endif | ||
} | ||
|
||
} // namespace cmdstan | ||
#endif |