Fortran: openmp: Add support for thread_limit clause on target
authorTobias Burnus <tobias@codesourcery.com>
Mon, 15 Nov 2021 14:44:11 +0000 (15:44 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 15 Nov 2021 14:44:11 +0000 (15:44 +0100)
commit82ec4cb3c43c7429be6b902d96770a6435fa068b
tree9cb809e747eb18bdd4f07def4fb5178d775fce71
parentb2e1ac548594c5f482b6e9e9cfa25f9cc090bf84
Fortran: openmp: Add support for thread_limit clause on target

gcc/fortran/ChangeLog:

* openmp.c (OMP_TARGET_CLAUSES): Add thread_limit.
* trans-openmp.c (gfc_split_omp_clauses): Add thread_limit also to
teams.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/thread-limit-1.f90: New test.
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
libgomp/testsuite/libgomp.fortran/thread-limit-1.f90 [new file with mode: 0644]