-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
rstan fails to build with newer versions of TBB #1041
Comments
For reference, here's the very lazy way this is done in RcppParallel: |
For the next StanHeaders release to CRAN (which is being blocked by a few packages), it seems we already have the following lines in init_threadpool_tbb.hpp:
If I change that to just
and make oneTBB a |
Hmm... this is what we have in RcppParallel: Which I think is our wonky way of seeing whether we're trying to use a "newer" version of TBB? |
So, if I understand correctly, RcppParallel/src/tbb/src/tbb/tbb_version.h is in the RcppParallel_5.1.7 that you just uploaded to CRAN, but wasn't in 5.1.6. So, if I were to upload a StanHeaders with that |
I think you're right... at least, I hope so! |
rstan (and packages using StanHeaders) do not build anymore in Fedora 40 and rawhide, where we have tbb 2021. The build failure is:
which is not present in tbb 2021. See e.g. this build log. |
Same issue: #924 |
@Enchufa2 if you want to use a newer version of the TBB than 2020, you need to add |
Isn't this supposed to be added by this? Lines 1 to 12 in 50c3c6f
|
Has the build set the StanHeaders is checking the TBB headers in the directory specified by |
RcppParallel autodetects the system tbb, and: > RcppParallel:::CxxFlags()
-I/usr/include/tbb |
Which is because you're setting |
No, that's an old workaround. Here's a |
That log is building the bundled TBB though?
|
Oh, it's not working! Something broke it then since that PR. :( |
@kevinushey I opened a new issue for this RcppCore/RcppParallel#216 @andrjohns Anyway, one way or another, RcppParallel was built with system tbb. It would be great that StanHeaders worked too without adding special flags. |
Have you got a log where it was built with the system TBB? |
Right, that log is setting |
That particular log it is, yes. So? |
Let me rephrase because I'm not sure we are on the same page:
|
As it turns out, when autodetection is restored in RcppParallel, rstan builds fine, because So this can be closed. Apologies for the noise. |
I saw this error in trying to build
rstan
on a recent submission of RcppParallel, which included an updated build of TBB:There is a migration guide included here:
https://oneapi-src.github.io/oneTBB/main/tbb_userguide/Migration_Guide/Task_Scheduler_Init.html
Would it be possible to update StanHeaders to remain compatible with the newer releases of TBB, for a future RcppParallel update?
The text was updated successfully, but these errors were encountered: