[Openmp-dev] Avoid using is_device_ptr clause

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Thu Aug 26 13:55:38 PDT 2021


Joachim, all,
Is the example you pointed to me just an expansion of
llvm_omp_tarfet_alloc_shared, then?

On Thu, Aug 26, 2021 at 20:59 Joachim Protze <protze.joachim at gmail.com>
wrote:

> You can use the target pointer association API (see 5.12 in the new
> OpenMP Examples 5.1 document). This should help you avoid usage of
> is_device_ptr and actually get proper mapping behavior.
>
> - Joachim
>
> Am 26.08.21 um 01:41 schrieb Itaru Kitayama via Openmp-dev:
> > Is there a way to avoid adding many is_device_ptr clauses every time
> > program enters the target region? I like the llvm_target_alloc_shared API
> > can handle internally the device pointer and make it accessible from the
> > target region as well.
> > _______________________________________________
> > Openmp-dev mailing list
> > Openmp-dev at lists.llvm.org
> > https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20210827/574d108f/attachment.html>


More information about the Openmp-dev mailing list