oneDPL icon indicating copy to clipboard operation
oneDPL copied to clipboard

[Test] Including STL impl to for macros in test_config.h

Open danhoeflinger opened this issue 1 year ago • 0 comments

Pre-including standard library implementation headers for tests to make sure we have knowledge of the STL implementation when creating macros.

Also, turning off PSTL_USE_PARALLEL_POLICIES when a valid tbb implementation is not present, and PSTL_USE_PARALLEL_POLICIES hasn't explicitly been set already. As written, this will effect all versions of the standard library implementation, it is not limited to the libstdc++ versions with an issue. However, I believe our oneDPL test code will not be testing / using the PSTL APIs we are turning off so while it is more aggressive than it might have to be, it seems harmless.

Alternative to #1548. Shares most of the code (other than approach within test_config.h). However, this PR effects tests only.

danhoeflinger avatar May 01 '24 19:05 danhoeflinger