RestrictionsΒΆ
The point of exit of a stuctured block cannot be a branch out of it. The following C code shows an example where any of the exit
calls may lead to undefined behavior:
int main() {
for (int i = 0; i < 10; i++) {
if (i > 5) exit(1);
#pragma oss task
{
// computation
exit(1);
}
}
#pragma oss taskwait
}