Skip to content

Can pass build definitions (like cxxflags) in model.run#970

Open
deroulers wants to merge 1 commit into
StochSS:mainfrom
deroulers:build_definitions
Open

Can pass build definitions (like cxxflags) in model.run#970
deroulers wants to merge 1 commit into
StochSS:mainfrom
deroulers:build_definitions

Conversation

@deroulers

Copy link
Copy Markdown

This PR adds the possibility

  • to pass build definitions when calling model.run
  • and in particular to add extra CXXFLAGS to be used during the build of a C++ solver.

E.g. on can run the model with
results = model.run(number_of_trajectories=10000, build_definitions={'extra_cxxflags':'-O3'})
so that, when using a C++-compiled solver, the solver gets compiled with optimizations and runs faster (in a simple test, this yields a 20% reduction in run time of the solver).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant