-
-
Notifications
You must be signed in to change notification settings - Fork 79
Add multithreading and stanc_optimization arguments to CmdStanModel #840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WardBrian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling! A couple minor comments:
|
Should we add these to compilation.compile_stan_model do you think? That is ultimately what gets called by the constructor, but it is also available to users. |
|
I considered it when implementing this. It'd be an easy change, but I wasn't sure I liked the idea of adding the same keyword args to both I don't feel that strongly about it. Happy to make the change if you think it'd be useful. |
|
Seems fair — it’s easy enough to add them later if we desire |
Submission Checklist
Summary
This adds two new boolean keyword arguments to
CmdStanModel:multithreadingandstanc_optimizations. These are included as a short-hand way to enable the common compilation optionsSTAN_THREADSandO1optimizations in stanc.Also updates workflow documentation on model compilation to mention these new options and reflect recent removal of deprecated
compileoptions.Resolves #837 and #836.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): myself
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: