Target offloading from multiple threads

I don’t think this works today. There’s some state in which looks like it gets shared by any target offloading invocation, so I think multiple host threads will invoke kernels that step on each other.

Further, I think this should work. It seems like a reasonable use case.

Shall we fix up deviceRTL (and the compiler side of reduction, possibly elsewhere) to support multiple simultaneous invocations of the openmp target runtime?



FYI: More past conversations.

Jon Chesterfield via Openmp-dev <> 于2019年12月3日周二 下午3:02写道: