public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109999] [OpenMP] Bogus error message: talks about '"#pragma omp" clause' instead of '"target" clause Date: Fri, 26 May 2023 19:53:51 +0000 [thread overview] Message-ID: <bug-109999-4-0Z9wF1TOck@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-109999-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109999 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- <source>: In function 'test_allocate_on_device': <source>:27:43: error: expected '#pragma omp' clause before 'uses_allocators' 27 | #pragma omp target map(tofrom: errors, A) uses_allocators(omp_default_mem_alloc) | ^~~~~~~~~~~~~~~ It is because uses_allocators is not implemented yet. If you do this: ``` int test_allocate_on_device() { #pragma omp target hhh for(int i = 0;i < 10;i++); } ``` GCC will produce a similar error message. If you replace hhh with simd, it will work. I suspect the error message is correct in the sense an omp clause there is still valid too. it does not know if it will be either a target or a normal clause .
next prev parent reply other threads:[~2023-05-26 19:53 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-26 19:35 [Bug c/109999] New: " burnus at gcc dot gnu.org 2023-05-26 19:53 ` pinskia at gcc dot gnu.org [this message] 2023-05-29 18:05 ` [Bug c/109999] " burnus at gcc dot gnu.org 2023-05-30 10:58 ` cvs-commit at gcc dot gnu.org 2023-05-30 11:10 ` burnus at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-109999-4-0Z9wF1TOck@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).