[Openmp-dev] Local variables and yielding of untied tasks

Joachim Protze via Openmp-dev openmp-dev at lists.llvm.org
Wed May 30 07:39:32 PDT 2018


On 05/30/2018 03:49 PM, Joseph Schuchart via Openmp-dev wrote:
> I am observing some strange behavior with Clang 6.0 (built from release 
> tarball, libomp built from master): the local variable contains the 
> value zero where it should contain a value similar to flag_one_cntr:

Running your code on our machine gives random numbers for task_id (but 
every time the same within a run). This looks like accessing 
uninitialized memory.

So either the variable is not properly stored at the yield, or the 
variable is not initialized to the stored value on continuation.

- Joachim


More information about the Openmp-dev mailing list