[flang-commits] [flang] [OpenMP] Introduce the initial support for OpenMP kernel language (PR #66844)

Shilei Tian via flang-commits flang-commits at lists.llvm.org
Tue Sep 26 13:46:50 PDT 2023


================
@@ -0,0 +1,21 @@
+// RUN: %clang_cc1 -verify -fopenmp %s
+// RUN: %clang_cc1 -verify -fopenmp-simd %s
+// RUN: %clang_cc1 -verify -fopenmp -fopenmp-targets=nvptx64 %s
+
+void foo() {
+}
+
+void bar() {
+#pragma omp target ompx_bare // expected-error {{unexpected OpenMP clause 'ompx_bare' in directive '#pragma omp target'}} expected-note {{OpenMP extension clause 'ompx_bare' only allowed with '#pragma omp target'}}
----------------
shiltian wrote:

I figured the note is not helpful at all since we need it to be on `target teams` instead of `target`. Updated.

https://github.com/llvm/llvm-project/pull/66844


More information about the flang-commits mailing list