[OpenMP] Fix OMPT cancellation test for GOMP
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 15 Mar 2019 21:24:45 +0000 (21:24 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 15 Mar 2019 21:24:45 +0000 (21:24 +0000)
commit6622732d9ab1945923563ca60e780db1566541cb
treeb04ac7d2fdd0c854c8c7d173801bb23130273e9d
parent9f377906088f1c26134d96353857e4c3dd5e8f34
[OpenMP] Fix OMPT cancellation test for GOMP

The GOMP sections interface uses schedule(dynamic) dispatch so it cannot
be assumed which thread executes the cancel and which thread executes
the cancellation point.  This patch allows either thread to execute either
section.

llvm-svn: 356302
openmp/runtime/test/ompt/cancel/cancel_worksharing.c