public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/101228] New: #include <execution> triggers Intel TBB warning for tbb/task.h
@ 2021-06-27  1:13 kip at thevertigo dot com
  2021-06-27  2:49 ` [Bug libstdc++/101228] " kip at thevertigo dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: kip at thevertigo dot com @ 2021-06-27  1:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101228

            Bug ID: 101228
           Summary: #include <execution> triggers Intel TBB warning for
                    tbb/task.h
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kip at thevertigo dot com
  Target Milestone: ---

I've managed to reproduce this issue on two different machines, one amd64 and
the other ppc64le. Both were using g++-11 (Ubuntu 11.1.0-1ubuntu1~21.04)
11.1.0.

Here is a minimal:

#include <algorithm>
#include <execution>

using namespace std;

int main()
{
    vector<long int> Container(3'000'000);
    iota(begin(Container), end(Container), 1);

    sort(execution::par, begin(Container), end(Container));

    return 0;
}

Compiling raises the following pragma in header generated warning:

$ g++-11 test.cpp -o test -Wall -Werror -std=c++17 -ltbb && ./test
In file included from /usr/include/c++/11/pstl/parallel_backend_tbb.h:26,
                 from /usr/include/c++/11/pstl/parallel_backend.h:20,
                 from /usr/include/c++/11/pstl/algorithm_impl.h:22,
                 from /usr/include/c++/11/pstl/glue_execution_defs.h:50,
                 from /usr/include/c++/11/execution:32,
                 from test.cpp:4:
/usr/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h
is deprecated. For details, please see Deprecated Features appendix in the TBB
reference manual.’
   21 | ("TBB Warning: tbb/task.h is deprecated. For details, please see
Deprecated Features appendix in the TBB reference manual.")
      |                                                                        
                                                   ^

Compiling again with #define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 prepended to
the beginning and the warning disappears.

This appears to have crept in some how with the 11 series. The <execution>
header is indirectly including some deprecated Intel header from the TBB
library.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-03-19 16:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-27  1:13 [Bug libstdc++/101228] New: #include <execution> triggers Intel TBB warning for tbb/task.h kip at thevertigo dot com
2021-06-27  2:49 ` [Bug libstdc++/101228] " kip at thevertigo dot com
2021-06-27  3:22 ` [Bug libstdc++/101228] tbb/task.h is Deprecated in newer TBB pinskia at gcc dot gnu.org
2021-06-28  0:59 ` kip at thevertigo dot com
2021-06-28  9:09 ` redi at gcc dot gnu.org
2021-06-28  9:32 ` doko at debian dot org
2021-06-28  9:36 ` redi at gcc dot gnu.org
2021-06-28 11:47 ` pilarlatiesa at gmail dot com
2021-06-28 13:29 ` redi at gcc dot gnu.org
2021-06-28 17:23 ` rodgertq at gcc dot gnu.org
2022-05-27  9:01 ` pilarlatiesa at gmail dot com
2022-05-27 10:03 ` redi at gcc dot gnu.org
2022-10-30 14:13 ` hicham at mouline dot org
2022-11-18 20:10 ` kerukuro at gmail dot com
2023-02-16 11:24 ` redi at gcc dot gnu.org
2023-06-27 14:48 ` redi at gcc dot gnu.org
2024-02-29 11:27 ` redi at gcc dot gnu.org
2024-03-19 16:00 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).