What is the purpose of this debug assertion KMP_DEBUG_ASSERT(dep->flags.in) if it is not a bug

So basically any OUT dependency will fail the runtime?

https://github.com/llvm-mirror/openmp/blob/master/runtime/src/kmp_taskdeps.cpp#L252

Thank you!
Yonghong

Yonghong,

IIRC, out dependencies also have their ‘in’ flag enabled.

Victor.

Hi Yonghong,

There is no difference between an inout and an out dependence in OpenMP, they have exactly the same semantics. I’d say that this assert is there because all output dependences are transformed into inout depedences by the compiler.

Best regards,
Sergi