-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Fix support for oneTBB new inteface >= v2021.1 #2974
Conversation
I believe Are you defining |
__has_include(<tbb/tbb_stddef.h>) -> TBB_VERSION_MAJOR >= 2021
Instead of relying on the makefile, I use CMake's FetchContent to integrate Stan-math into my project as a module. This approach streamlines the build process and eliminates the need to install unused components, allowing greater flexibility in managing dependencies. I could find related interest in using FetchContent + CMakeList.txt in #2967
|
#2967 is definitely the right place to discuss CMake, and I'm hoping we can support it sooner rather than later. In the mean time, you should still be using |
Thanks for your time. I will do so. However, it still wont support TBB_VERSION_MAJOR == 2021. Current statement for |
We use TBB 2021 for the conda-forge builds of cmdstan with this. If you can share the error you are getting I can try to help debug it, but it is definitely possible to use newer TBBs without source changes |
OneApi TBB does not have tbb_stddef.h anymore. TBB might? |
If you define |
Indeed, as you previously pointed out. My apologies. |
Submitting a support for oneTBB new interface. I suggest that this should be tested with a proper CI/CD.
oneTBB library do not provide <tbb/tbb_stddef.h> anymore as can be seen here. It is now replaced by <tbb/tbb.h> since v2021.1.