From cTuning.org

Jump to: navigation, search

Assorted questions for the GROW'10 workshop panel:

Contents

Notes from the GROW'10 Panel: (recorded and updated by Dorit Nuzman and Grigori Fursin)

The main topic of the discussion was:

How to make GCC more attractive to researchers, and how GCC can benefit from researchers?'

Here is the list of major points and wishes raised by participants:

  • Need to encourage cleanup/infrastructure work on GCC and provide stable/flexible/extensible APIs (the question is how to encourage such infrastructure work?)
  • Encourage people to work on infrastructure and full implementation that actually works: Lobby for high quality conferences to reserve a quota of the accepted papers to papers that focus on *implementation* work (and start with HiPEAC!)
  • Follow up to the above: Encourage research that actually works: Lobby for conferences to favor research work that is tested on a realistic environment (e.g. pass all of SPECcpu...), and that is reproducible. Then GCC and the community could immediately benefit from the results and not wait for many years before someone decides to reproduce/redo research ideas in GCC.
  • Get statistics on percentage of papers/projects that use compilers other than GCC, and ask them why... (By the way, why was OpenCL implemented only on LLVM and not on GCC?)
  • Open up GCC to be used as a library by other tools, so that other tools could use its analysis facilities. For example, having alias analysis as an API rather than a pass that needs to be applied and then collect information. Allow developers/tools access those functions outside GCC (should be a high-level API)...
  • Follow up to the above: Need to come up with a common API / standardization / common levels of abstractions. Decide on how to coordinate efforts and find commonalities.
  • Need a simple pass manager that can list all available passes and allow any scheduling (providing dependency information).
  • Make more visible/accessible guides for building/extending GCC...
  • Better advertize Google Summer of Code, and provide more mentoring.
  • Send feedback on which plugin events are desired to add to next releases of GCC.
  • GCC tries to auto-parallelize the programs it compiles. Will GCC itself be made more multi-threaded and run faster in a multi-core environment...?

Anonymous feedback:

The reasons I have seen for using llvm/clang are basically two-fold: gcc is too slow and too complicated. (This is true even for a company with significant in-house gcc expertise.) The C language parser for llvm (clang) is far faster than the gcc equivalent, easier to modify, and easier to build into a separate library. Speed is a major decision for choosing clang/llvm, as OpenCL needs to be complied on the fly. The llvm infrastructure is also far easier to manipulate and modify than gcc. This is particularly important as implementing OpenCL means building complier backends to generate Nvidia's PTX or AMD's IL, adding specific vector extensions, and supporting various language intrinsics. I don't know how much of an issue the licensing issues may be. These issues, plus significant corporate backing, appear to be really driving llvm in the OpenCL area. My impression is that for gcc to be competitive it will have to offer both comparable compilation speed and dramatically better code optimizations. Even then, I'm not sure if the difficulty of working with it will be considered a good tradeoff for most companies.

Before GROW'10 panel:

  • Grigori Fursin: I would like to discuss further extensions to ICI and MILEPOST GCC needed to provide compiler/architecture/language independent API for program analysis and optimization (unified data exchange format?) that may be needed for our further research on fine-grain iterative compilation, reactive iterative compilation, collective optimization and split-compilation...
  • Albert Cohen: I'd love to raise the issue about learning curve and development productivity with GCC code base.
  • Konrad Trifunovic:
    • Are you interested in contributing to the Graphite, and what would You like to use Graphite for?
    • We have some limitations due to the nature of the polyhedral model (static analysis). We are interested in extending static approach to more dynamic approaches. Anyone interested in this topic?
    • We are interested in a ways of representing the concurrency in the GIMPLE. What we would like to achieve is the following: the original source code is extended with pragmas (probably the OpenMP or similar) which give hints to the compiler as to which loops or regions of code are parallel etc. Graphite could find this information helpful, so that it can extend the scope of analysis. This wokr concerns not only Graphite but whole GCC. Already a paper on this?
    • Anyone working on automatic parallelization: if you are working on the parallelization methods based on polyhedral model (scheduling based) and you are using one of the source-to-source tools (PLUTO, PoCC, LooPo) why do not give Graphite a try?
    • Anyone working on polyhedral model for different purposes (for example static analysis, automatic verification) is welcome to have a look at Graphite. We use PPL (Parma Polyhedra Library), originally made by the verification people in mind...
    • Coupling Graphite and plugins?..
Locations of visitors to this page

Tweet