llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

runtime assert fail with --fopenmp-version=50 due to nonmonotonic default modifier

Open jdenny-ornl opened this issue 7 years ago • 2 comments

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.

jdenny-ornl avatar Nov 16 '19 16:11 jdenny-ornl

Thanks for the quick fix. It works for me.

jdenny-ornl avatar Nov 19 '19 16:11 jdenny-ornl

assigned to @alexey-bataev

jdenny-ornl avatar Nov 16 '19 16:11 jdenny-ornl