llvm-project/polly/lib/Analysis
Singapuram Sanjay Srivallabh 1abd9ffa37 [PPCGCodeGen] Differentiate kernels based on their parent Scop
Summary:
Add a sequence number that identifies a ptx_kernel's parent Scop within a function to it's name to differentiate it from other kernels produced from the same function, yet different Scops.

Kernels produced from different Scops can end up having the same name. Consider a function with 2 Scops and each Scop being able to produce just one kernel. Both of these kernels have the name "kernel_0". This can lead to the wrong kernel being launched when the runtime picks a kernel from its cache based on the name alone. This patch supplements D33985, by differentiating kernels across Scops as well.

Previously (even before D33985) while profiling kernels generated through JIT e.g. Julia, [[ https://groups.google.com/d/msg/polly-dev/J1j587H3-Qw/mR-jfL16BgAJ | kernels associated with different functions, and even different SCoPs within a function, would be grouped together due to the common name ]]. This patch prevents this grouping and the kernels are reported separately.

Reviewers: grosser, bollu

Reviewed By: grosser

Subscribers: mehdi_amini, nemanjai, pollydev, kbarton

Tags: #polly

Differential Revision: https://reviews.llvm.org/D35176

llvm-svn: 307814
2017-07-12 16:46:19 +00:00
..
DependenceInfo.cpp Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
PolyhedralInfo.cpp [Polly][NewPM] Port ScopInfo to the new PassManager 2017-05-15 12:55:14 +00:00
PruneUnprofitable.cpp [PruneUnprofitable] Add -polly-prune-unprofitable pass. 2017-03-17 13:09:52 +00:00
ScopBuilder.cpp [ScopInfo] Do not use ScopStmt in Domain derivation of ScopInfo. NFC 2017-06-29 12:47:41 +00:00
ScopDetection.cpp [Polly] [ScopDetection] Allow passing multiple functions to `-polly-only-func`. 2017-06-09 08:23:40 +00:00
ScopDetectionDiagnostic.cpp [ScopDetection] Do not detect scops that exit to an unreachable 2017-03-07 15:50:43 +00:00
ScopGraphPrinter.cpp [Polly][NewPM] Port ScopDetection to the new PassManager 2017-05-12 14:37:29 +00:00
ScopInfo.cpp [PPCGCodeGen] Differentiate kernels based on their parent Scop 2017-07-12 16:46:19 +00:00
ScopPass.cpp Add opt-bisect support to polly. 2017-06-01 21:29:05 +00:00