[Openmp-dev] Mapping Questions/Concern

Johannes Doerfert via Openmp-dev openmp-dev at lists.llvm.org
Thu Aug 19 15:04:43 PDT 2021


Yes. My mistake. Mystery solved.

:)

On 8/19/21 4:18 PM, Alexey.Bataev wrote:
> HI Johannes, I'm not sure completely, but looks like you're doing alloc
> mapping of the Dummy class instance and _n member is not initialized (I
> believe, it is zeroed). Can you try to do `to` kind of mapping instead
> in `enter data`?
>
>
> -------------
> Best regards,
> Alexey Bataev
>
> 19.08.2021 12:56, Johannes Doerfert via Openmp-dev пишет:
>> Hi,
>>
>> I was playing around with an example and I fail to understand the
>> behavior, consequently I suspect a bug.
>>
>> The test.cpp file attached shows 3 target regions. All execute 1 loop
>> iteration and write a value into an array of size 1.
>> Only, the middle one uses a member of the previously mapped object.
>> While that should not influence the array of size 1, IMHO,
>> it seems to do for some reason.
>>
>> Any ideas? Is this expected or a bug?
>>
>> ~ Johannes
>>
>>
>>
>> _______________________________________________
>> Openmp-dev mailing list
>> Openmp-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev


More information about the Openmp-dev mailing list