[Openmp-dev] Verbose outlining name

Doerfert, Johannes via Openmp-dev openmp-dev at lists.llvm.org
Tue May 28 17:41:18 PDT 2019


Can you give the attached patch a try? (untested)



---------------------------------------
Johannes Doerfert
Researcher

Argonne National Laboratory
Lemont, IL 60439, USA

jdoerfert at anl.gov


________________________________________
From: Openmp-dev <openmp-dev-bounces at lists.llvm.org> on behalf of Ye Luo via Openmp-dev <openmp-dev at lists.llvm.org>
Sent: Saturday, May 11, 2019 09:44
To: via Openmp-dev
Subject: [Openmp-dev] Verbose outlining name

Hi,
I noticed that clang outlines OpenMP regions without giving verbose function names.
As shown below, it is almost impossible to tell where "__omp_outlined__5_wrapper" is from when compiling a big program.However, I need to investigate these regions and reduce register spill which is performance critical.

ptxas info    : Function properties for __omp_offloading_33_3c57fa9__ZN11qmcplusplus12SplineC2ROMPIdfE17evaluateDetRatiosINS_6VectorIfSaIfELj0EEEfEEvRKNS_18VirtualParticleSetERT_RKS9_RSt6vectorIT0_SaISE_EE_l571
    32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Function properties for __omp_outlined__5_wrapper
    224 bytes stack frame, 136 bytes spill stores, 136 bytes spill loads
ptxas info    : Function properties for _ZN7spline228computeLocationAndFractionalIdEEvPKN11qmcplusplus14bspline_traitsIT_Lj3EE10SplineTypeES3_S3_S3_RiS8_S8_PS3_S9_S9_
    272 bytes stack frame, 236 bytes spill stores, 236 bytes spill loads
ptxas info    : Function properties for __omp_outlined__1_wrapper
    368 bytes stack frame, 340 bytes spill stores, 340 bytes spill loads

A composite name __omp_outlined_SOURCE_FUNCTION_NAME is way more useful.
Could someone fix this or point me where to fix this in the clang source.

Best,
Ye
===================
Ye Luo, Ph.D.
Computational Science Division & Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Name-outlined-functions.patch
Type: text/x-patch
Size: 13369 bytes
Desc: 0001-Name-outlined-functions.patch
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190529/92cdf212/attachment.bin>


More information about the Openmp-dev mailing list