aboutsummaryrefslogtreecommitdiff
path: root/pstl/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2019-04-24[pstl] Make the default backend be the serial backend and always provide ↵Louis Dionne1-15/+10
parallel policies Summary: Before this change, the default backend was TBB but one could disable anything related to TBB by removing the parallel policies. This change uses the serial backend by default and removes the ability to disable parallel policies, which is not useful anymore. Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59792 llvm-svn: 359134
2019-04-18[pstl] Add a serial backend for the PSTLLouis Dionne1-10/+7
Summary: The serial backend performs all tasks serially and does not require threads. It does not have any dependencies beyond normal C++, but it is not very efficient either. Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59791 llvm-svn: 358700
2019-04-11[pstl] Remove our custom FindTBB CMake fileLouis Dionne1-1/+0
Summary: The TBBConfig file installed by TBB 2019 Update 5 works properly, so we don't need this workaround anymore. Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60467 llvm-svn: 358196
2019-04-11[pstl] Setup the _PSTL_VERSION macro like _LIBCPP_VERSION, and add release notesLouis Dionne1-5/+6
Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60464 llvm-svn: 358193
2019-04-09[pstl][CMake] Install CMake export filesLouis Dionne1-12/+30
This allows other projects to depend on PSTL using the classic CMake find_package protocol. llvm-svn: 358028
2019-04-09[pstl][NFC] Move the ParallelSTLConfig template to the cmake/ subdirectoryLouis Dionne1-1/+1
llvm-svn: 358018
2019-04-03[pstl] Require C++17 when linking against pstlLouis Dionne1-0/+1
llvm-svn: 357609
2019-03-27Restructure test suite to follow libc++ standard layoutLouis Dionne1-1/+3
Summary: Subsumes changes requested in https://reviews.llvm.org/D59110 Reviewers: EricWF, ldionne Subscribers: mgorny, krytarowski, jfb, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59856 llvm-svn: 357124
2019-03-25[pstl][CMake] Move include() closer to its point of useLouis Dionne1-2/+1
llvm-svn: 356900
2019-03-14[pstl] By default, disable the parallel policiesLouis Dionne1-1/+1
Since we don't have any non-trivial PSTL backend that doesn't require TBB yet, enabling the parallel policies by default breaks people that try to build all of LLVM without having an installation of TBB. Since this is unacceptable, parallel policies are disabled by default. We can re-enable it once we have a backend that does not require anything beyond what C++ already requires. For example, we could have a simple backend that uses std::thread by default or something along those lines, with the understanding that vendors would use their own (more efficient) backend. llvm-svn: 356194
2019-03-12[pstl] Properly extract the version number from pstl_config.hLouis Dionne1-1/+1
Previously, we'd be performing math on `#define PSTL_VERSION NNN` instead of just `NNN`. It seems like older CMakes didn't complain, but newer CMakes do complain because it doesn't make sense. llvm-svn: 355918
2019-01-19Update more file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
2019-01-10[pstl] Fix CMake configuration when parallel policies are disabledLouis Dionne1-1/+1
llvm-svn: 350812
2018-12-21[pstl] Initial integration with LLVM's CMakeLouis Dionne1-6/+7
Summary: This commit adds a check-pstl CMake target that will run the tests we currently have for pstl. Those tests are not using LLVM lit yet, but switching them over should be a transparent change. With this change, we can start relying on the `check-pstl` target for workflows and CI. Note that this commit purposefully does not support the pre-monorepo layout (with subprojects in projects/), since LLVM is moving towards the monorepo layout anyway. Reviewers: jfb Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits, mclow.lists, rodgert Differential Revision: https://reviews.llvm.org/D55963 llvm-svn: 349919
2018-12-19Initial PSTL commitJF Bastien1-0/+71
The initial commit of the Parallel STL upstream (under LLVM umbrella) based on Parallel STL 20181204 open source release, which is available by https://github.com/intel/parallelstl Author: Mikhail Dvorskiy <mikhail.dvorskiy@intel.com> Differential Revision: https://reviews.llvm.org/D55889 llvm-svn: 349653