Closed MathiasMagnus closed 3 years ago
@AlexVlx How can the macOS tests fail due to these changes? Tests seem to be timing out.
@AlexVlx How can the macOS tests fail due to these changes? Tests seem to be timing out.
That's an unrelated (known) failure, please ignore.
I'll revisit the issue this week. (At least that's the plan.)
I added the missing TBB detection and it builds on all platforms and just "regularly" timeouts on macOS.
Merged, thank you.
This PR addresses #11.
It includes the lightest of STL headers in C++17 mode which immediately pulls in
bits/c++config.h
which in turn includespstl/pstl_config.h
which exposes the half-baked machinery of PSTL back-end detection and simply defaults to TBB.CMake script looks for the macro
__PSTL_PAR_BACKEND_TBB
and if present searches for TBB and links to it. It is still not bullet-proof, but better than the current linkage to system TBB._(Note: does not support TBB versions prior to 2017 as per the docs, but that shouldn't matter, as minimum requirements for PSTL is 2018.)_