[llvm-dev] Parallel IR [PIR] --- BoF preparation discussion
Johannes Doerfert via llvm-dev
llvm-dev at lists.llvm.org
Fri Oct 14 02:38:53 PDT 2016
In preparation for the BoF on Parallel IR at the US developers meeting
we would like to collect feedback from the whole community. The
concerns, ideas, etc. will be summarized in the BoF and should provide a
good starting point for a discussion.
We know that over the years the topic of a parallel extension for LLVM
was discussed on the mailing list [0, 1, 2], workshops [3, 4] or in
scientific publications [5, 6, 7]. ***
We believe the solutions implemented in LLVM, namely parallel loop
metadata  and early proceduralization (aka. early outlining) for
OpenMP  or Cilk+ , are not well suited for optimization of "general
parallel codes". The reason are many fold and have been often
discussed alongside the various proposals mentioned above. Regarding
only the current implementation some problems have already manifested,
- less optimization potential (partly) due to weak inter-procedural
analysis [7, 11].
- easy breakage of "parallelism" due to removal of metadata by
intermediate passes [12, 13].
and others are likely to do so if we want to support more parallel
front-ends, optimizations and backends/runtimes.
In the beginning of this year a working group on
"LLVM-HPC IR extensions for Parallelization, Vectorization and
Offloading of LLVM compilers"
was initiated by Xinmin Tian. People from various companies, research
institutions and some universities discussed different approaches
regarding "parallelism" in the compiler IR/pipeline. Based on the
generally positive attitude regards a "more intrusive" parallel
extension we decided to resurrect the discussion once more, including a
BoF at the US developers meeting in 3 weeks.
To structure the mailing list discussion we propose to:
- Inform a broader audience on the (currently) proposed approaches
targeted specifically at LLVM (including but not necessarily limited
to the work by Intel, Dounia Khaldi et al, Tao Schardl et al and our
- Collect/summarize arguments for and against a "more intrusive"
parallel representation in LLVM.
- Collect/summarize requirements including abstract design goals but
also concrete examples that should (not) be supported.
=> We will use the summaries to prepare a short presentation for the BoF
(~10min) which allows us to use the majority of time for a qualified
discussion on the topic.
__Before__ we now dive into a technical discussion I would like people
to provide feedback on the proposed structure first. This will
(hopefully) allow a more organized and constructive discussion.
Johannes, Simon and Kevin
*** All lists of references are incomplete. They provide a starting
point for interested readers but not a summary of what happened.
Researcher / PhD Student
Compiler Design Lab (Prof. Hack)
Saarland Informatics Campus, Germany
Building E1.3, Room 4.31
Tel. +49 (0)681 302-57521 : doerfert at cs.uni-saarland.de
Fax. +49 (0)681 302-3065 : http://www.cdl.uni-saarland.de/people/doerfert
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 195 bytes
Desc: Digital signature
More information about the llvm-dev