https://bugs.llvm.org/show_bug.cgi?id=46185

            Bug ID: 46185
           Summary: Dependencies for undeferred detached tasks are missing
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangb...@nondot.org
          Reporter: pro...@itc.rwth-aachen.de
                CC: llvm-bugs@lists.llvm.org

Created attachment 23570
  --> https://bugs.llvm.org/attachment.cgi?id=23570&action=edit
reproducer

Without detached tasks, any outgoing dependencies for undeferred tasks (if(0))
could be ignored. 
For detached tasks, tracking this dependency is necessary. 

As I understand the generated code, the dependencies are not passed to the
task, but rather  __kmpc_omp_wait_deps blocks for the incoming dependencies.


  call void @__kmpc_omp_wait_deps ...
  call void @__kmpc_omp_task_begin_if0 ...


Therefore, the second task in the attached code does not wait for the
completion of the first task, which would be the call to omp_event_fulfill at
the end.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to