-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Test compiling stan model in conda with conda-forge compilers installed #114
Comments
Hi, I ran into this error. Is there a solve? Not sure what issue is from your comment. Thanks for any help. |
Brian Ward provided end user work around. see https://discourse.mc-stan.org/t/nutpie-and-stan-functionality/37077/6 |
What's happening is the following: nutpie calls into bridgestan to convert the stan model code to c++ and compile this using code from the stan repository. I'm not really sure where this should be fixed, but nutpie doesn't seem to be the right place I think? @WardBrian I hope it is ok if I ping you here, do you think it would be possible to use a check like this one in the makefile of stan to set TBB_CXX_TYPE if necessary? I don't quite get why cmdstanpy isn't also running into this issue, maybe it has a different workaround? |
Just to clarify, is everyone here running on Linux? Setting |
If you install cmdstanpy from conda, you will also get cmdstan from conda, which sets this: https://github.com/conda-forge/cmdstan-feedstock/blob/main/recipe/build.sh#L12 (and some other flags, to actually just use TBB from conda on non-Windows) We don't currently have a configure-like step, which I think would be the natural place to build a file like the one you linked to. One potential option is to package bridgestan itself on conda-forge. This would probably be pretty easy if we extracted a lot of cmdstan's build into a |
Ah, that explains why this doesn't happen for cmdstan. A conda bridgestan package would indeed be nice :-) For the snipped, I don't think you would have to compile anything though. I think you could run
in a makefile directly, it only has to run the preprocessor, not the full compiler. |
I don’t think Stan can even be compiled by MSVC as it stands today, so it would always be either gcc or clang I suspect |
Otherwise it seems this can lead to the stan makefile not recognizing the compiler:
The text was updated successfully, but these errors were encountered: