Skip to content

Add ./model compile_info  #887

Closed
@rok-cesnovar

Description

@rok-cesnovar

Description:

We should add a "compile_info" argument to the model executable that would output information on how to executable was compiled:

Example:

./examples/bernoulli/bernoulli compile-info

outputs:

MODEL_NAME = bernoulli_model
STAN_VERSION = 2.23.0
STANCFLAGS = --allow_undefined
STANC_VERSION = stanc3 124f5639
STAN_THREADS = true

For now, I envisioned adding the stan version, stanc flags, stanc version, and whether the THREADS/MPI/OPENCL flags were used.

Other options I am not sure we want to use but could if there is interest:

  • c++ compiler and version
  • the time of compilation
  • hash of the model code
  • model code (but that is probably overkill)

Current Version:

v2.23.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions