[Openmp-dev] Avoid using is_device_ptr clause

Joachim Protze via Openmp-dev openmp-dev at lists.llvm.org
Thu Aug 26 04:59:34 PDT 2021

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

More information about the Openmp-dev mailing list