Skip to content

extra tokens at the end of '#pragma omp target' are ignored #33

Open

Description

@jinz2014

I tried amdclang to compile the program "async_target.5.c" and got the following warning:

warning: extra tokens at the end of '#pragma omp target' are ignored [-Wextra-tokens]
23 | #pragma omp target nowait(is_deferred) map(tofrom: x)

Running the program produces the result "Failed".

Can you suggest the compiler and options for OpenMP 6.0 support ?

Activity

  1. HenryJin commented on Sep 11, 2025

    @HenryJin
    Contributor

    Most of the compilers don't support OpenMP 6.0 yet. For OpenMP support in clang, please check https://clang.llvm.org/docs/OpenMPSupport.html. For a summary of other compilers, please refer to https://www.openmp.org/resources/openmp-compilers-tools/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions