[libcxx-commits] [pstl] r363958 - [pstl] Default to the serial backend when unspecified
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 20 10:56:51 PDT 2019
Author: ldionne
Date: Thu Jun 20 10:56:51 2019
New Revision: 363958
URL: http://llvm.org/viewvc/llvm-project?rev=363958&view=rev
Log:
[pstl] Default to the serial backend when unspecified
This is a stopgap measure to make it easier to integrate the PSTL into
libc++. In the future, we should have a system similar to what libc++
does, where we specify settings at configuration time and generate a
__config_site header that is part of the PSTL.
Modified:
pstl/trunk/include/pstl/internal/pstl_config.h
Modified: pstl/trunk/include/pstl/internal/pstl_config.h
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/include/pstl/internal/pstl_config.h?rev=363958&r1=363957&r2=363958&view=diff
==============================================================================
--- pstl/trunk/include/pstl/internal/pstl_config.h (original)
+++ pstl/trunk/include/pstl/internal/pstl_config.h Thu Jun 20 10:56:51 2019
@@ -17,7 +17,9 @@
#define _PSTL_VERSION_PATCH (_PSTL_VERSION % 10)
#if !defined(_PSTL_PAR_BACKEND_SERIAL) && !defined(_PSTL_PAR_BACKEND_TBB)
-# error "The parallel backend is neither serial nor TBB"
+// TODO: In the future, we need to handle this setting using a configure-time
+// option and something like a __config_site header.
+# define _PSTL_PAR_BACKEND_SERIAL
#endif
// Check the user-defined macro for warnings
More information about the libcxx-commits
mailing list