[llvm-bugs] [Bug 30889] New: Target teams: assertion failure in kmp_runtime.c
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 2 14:53:18 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30889
Bug ID: 30889
Summary: Target teams: assertion failure in kmp_runtime.c
Product: OpenMP
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: grokos at us.ibm.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Tested on x86_64 and ppc64le, RHEL.
The following code with target offloading disabled triggers an assertion
failure:
int main() {
#pragma omp target teams num_teams(2) if(target:0)
{
(void) 0;
}
return 0;
}
Assertion failure at kmp_runtime.c(2292): master_th->th.th_task_team ==
team->t.t_task_team[master_th->th.th_task_state].
OMP: Error #13: Assertion failure at kmp_runtime.c(2292).
If I set num_teams(1) then the program runs to completion, with 2 teams or more
the assertion trips. If I comment out the assertion or use libomp in release
mode, the program runs fine no matter how many teams we have.
The same assertion is found in various places throughout kmp_runtime.c, in one
instance (line 2051) the assertion has been patched out with a comment saying
that the assertion is known to trap although the runtime operates correctly.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161102/67fd780d/attachment.html>
More information about the llvm-bugs
mailing list