[PATCH 8/10] libstdc++: Disable pstl heterogeneous backends
Tomasz Kaminski
tkaminsk@redhat.com
Tue Dec 1 09:18:47 GMT 2026
On Fri, Nov 27, 2026 at 10:50 PM Jonathan Wakely <jwakely@redhat.com> wrote:
> Force _ONEDPL_HETERO_BACKEND to zero so that we never try to include the
> pstl/hetero/*.h headers which were not imported from upstream.
>
> libstdc++-v3/ChangeLog:
>
> * include/pstl/onedpl_config.h (_ONEDPL_HETERO_BACKEND): Undef
> and define to 0.
> ---
>
> Tested x86_64-linux.
>
LGTM
>
> libstdc++-v3/include/pstl/onedpl_config.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/libstdc++-v3/include/pstl/onedpl_config.h
> b/libstdc++-v3/include/pstl/onedpl_config.h
> index 48f32e2c3fb3..9eb624aeda82 100644
> --- a/libstdc++-v3/include/pstl/onedpl_config.h
> +++ b/libstdc++-v3/include/pstl/onedpl_config.h
> @@ -58,6 +58,9 @@
> # define _ONEDPL_HETERO_BACKEND 1
> #endif
>
> +#else
> +# undef _ONEDPL_HETERO_BACKEND
> +# define _ONEDPL_HETERO_BACKEND 0
> #endif
>
> // -- Configure host backends and common parts --
> --
> 2.56.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261201/b76841ca/attachment-0001.htm>
More information about the Libstdc++
mailing list