-
Notifications
You must be signed in to change notification settings - Fork 57
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
Enable building with the system tbb library #107
Comments
Tough. In general, we can support this -- I once enabled just that for nloptr. But this is a much larger and complicated package so I am not sure. Call to be made by @kevinushey. |
Seems possible in theory. We load TBB when RcppParallel is loaded here: Lines 7 to 23 in b216ba2
We'd just have to swap out those paths for something separately provided / requested by the user. However, I'm not sure if TBB is intended to be used in this way, or if things could subtly break. |
I patched tbbLibPath to just return the path to the system installed libtbb as a workaround to avoid shipping the vendored libtbb. Currently my project's opencv is linking against the system libtbb without issue. Things often are a little trickier when dlopening though as RccpParallel does since you won't see library version mismatches at build time. |
Keep at it. This will be worthwhile. |
Hunting for a solution of a different issue I came around the debian patch for using the system tbb. Would you advise against using of the system's tbb? Otherwise I would build for OpenSUSE just like debian does. |
It is not my package, hence not my call. In general, I like using system libs, but there is a risk of a delta. |
I wouldn't advise against it, I just haven't tested it yet. I'd like to eventually do this properly but haven't yet been able to carve out the time to do it (but would gladly accept a PR) |
I'd like to build against the system tbb instead of the embedded tbb provided by the source package. Looking at the build process this seems like a bigger patch though. Would that be something you would consider adding?
The text was updated successfully, but these errors were encountered: