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

            Bug ID: 50022
           Summary: target nowait fails in certain cases
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

https://github.com/ye-luo/openmp-target/blob/master/tests/target_task/target_nowait_task.cpp

$ clang++ -fopenmp target_nowait_task.cpp && ./a.out
outside a = 0 addr 0x7ffe582232d8
a = -1736998310 addr 0x7ffe582232d8
terminate called after throwing an instance of 'std::runtime_error'

$ LIBOMP_USE_HIDDEN_HELPER_TASK=OFF ./a.out 
outside a = 0 addr 0x7ffe34b37388
a = 1 addr 0x7ffe34b37388

$ clang++ -fopenmp -O3 target_nowait_task.cpp && ./a.out
outside a = 0 addr 0x7ffe50503c64
a = 1 addr 0x7ffe50503c64

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

Reply via email to