Skip to content
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

feature request: force compilation with threading enabled #1549

Open
jsocolar opened this issue Oct 10, 2023 · 1 comment
Open

feature request: force compilation with threading enabled #1549

jsocolar opened this issue Oct 10, 2023 · 1 comment
Labels

Comments

@jsocolar
Copy link
Contributor

We can shoehorn certain classes of non-factorizable models (e.g. occupancy models) into brms by evaluating the likelihood inside an unlooped custom family. In order to take advantage of multiple threads per chain, one option is to write the stan code for the custom family using reduce_sum (this fails to use parallelization for computing the linear predictors, but still can use parallelization for evaluating the conditional likelihood). However, to use such a custom family, we need a way to force the model to compile with threading enabled. A hack using cmdstanr is to modify make/local as necessary at runtime, but if there's a possibility to implement a more streamlined solution that would be great!

@paul-buerkner
Copy link
Owner

Thanks. I will think about how to best approach this and add it in the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants