runtime assert fail with --fopenmp-version=50 due to nonmonotonic default modifier
| Bugzilla Link | 44024 |
| Resolution | FIXED |
| Resolved on | Nov 19, 2019 08:40 |
| Version | unspecified |
| OS | Linux |
| Fixed by commit(s) | c3eded068c64bfe614d25359927a2917ff8e4a35 |
Extended Description
I'm working at commit 1ee84e5ab2a4 on Ubuntu 18.04.3.
$ cat test.c int main() { #pragma omp target teams num_teams(2) #pragma omp distribute for (int i = 0; i < 2; ++i) ; return 0; } $ clang -fopenmp -fopenmp-version=50 test.c $ ./a.out Assertion failure at kmp_sched.cpp(374): __kmpc_for_static_init: unknown scheduling type. OMP: Error #13: Assertion failure at kmp_sched.cpp(374). OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/. Aborted (core dumped)
Reverting 07a3b59279c4 fixes this.
Thanks for the quick fix. It works for me.
assigned to @alexey-bataev