As started in D107925, this patch replaces the remaining occurrences of
UNIFIED_SHARED_MEMORY && TgtPtrBegin == HstPtrBegin in
omptarget.cpp with IsHostPtr. The former condition is broken in
the rare case that the device and host happen to use the same address
for their mapped allocations. I don't know how to write a test that's
likely to reveal this case.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I don't think it is at all possible to write a test emulating this rare case of TgtPtr in GPU memory having the same value as HstPtr in host memory, so this is good to go even without a test. LGTM.