[flang-dev] OpenMP target regions and intrinsic Fortran math functions

Jean Perier via flang-dev flang-dev at lists.llvm.org
Mon Jul 27 02:59:27 PDT 2020


Hi,

Kiran Chandramohan is working on OpenMP lowering and might have a plan here. Math intrinsics are currently lowered in mlir to a mix of inlined code,  calls to llvm intrinsics, and calls to runtime when the first two options are not possible. Attributes are added to these runtime calls so that they can easily be identified as intrinsic calls and later rewrote if needed. These attributes could be adapted based on what the team working on OpenMP lowering needs here.

Jean

From: flang-dev <flang-dev-bounces at lists.llvm.org> On Behalf Of Romero, Nichols A. via flang-dev
Sent: Wednesday, July 22, 2020 8:26 PM
To: flang-dev at lists.llvm.org
Subject: [flang-dev] OpenMP target regions and intrinsic Fortran math functions

External email: Use caution opening links or attachments

Hi,

I am bringing this up because it seems that OpenMP development is really ramping up now and I want to bring up a common use case that does not seem to be supported with other vendor compilers.

It is a common use case to call the Fortran intrinsic Math functions in an openmp target region. I am not sure how this in implemented in the Fortran + OpenMP compilers for the vendors who do support it. I suspect this is done by inlining, but it appears that other vendors have their Fortran math functions in a backend runtime library which somehow prevents these functions from being called in an OpenMP target region.



--
Nichols A. Romero, Ph.D.
Computational Science Division
Argonne Leadership Computing Facility
Argonne National Laboratory
Building 240 Room 2-127
9700 South Cass Avenue
Lemont, IL 60439
(630) 252-3441

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/flang-dev/attachments/20200727/0dafc982/attachment.html>


More information about the flang-dev mailing list