Towards semi-automatic data-type translation for parallelism in Erlang
MetadataShow full item record
Altmetrics Handle Statistics
Altmetrics DOI Statistics
As part of our ongoing research programme into programmer-in-the-loop parallelisation, we are studying the problem of introducing alternative data structures to support parallelism. Automated support for data structure transformations makes it easier to produce the best parallelisation for some given program, or even to make parallelisation feasible. We use a refactoring approach to choose and introduce these transformations for specific algorithmic skeletons, structured forms of parallelism that capture common patterns of parallelism. Our approach integrates with the Wrangler refactoring tool for Erlang, and uses the advanced Skel  skeleton library for Erlang. This library has previously been shown to give good parallelisations for a number of applications, including a multi-agent system  where we have achieved speedups of up to 142.44 on a 61-core machine with 244 threads. We have investigated three widely-used Erlang data structures: lists, binary structures and ETS (Erlang Term Storage) tables. In general, we have found that ETS tables deliver the best parallel performance for the examples that we have considered. However, our results show that simple lists may deliver similar performance to the use of ETS tables, and better performance than using binary structures. This means that we cannot blindly choose to implement a single optimisation as part of the compilation process. Our approach also allows the use of new (possibly user-defined) data structures and other transformations in future, giving a high level of flexibility and generality.
Barwell , A D , Brown , C M , Castro , D & Hammond , K 2016 , Towards semi-automatic data-type translation for parallelism in Erlang . in Proceedings of the 15th International Workshop on Erlang . ACM , New York , pp. 60-61 , 15th ACM SIGPLAN Workshop on Erlang , Nara , Japan , 23/09/16 . https://doi.org/10.1145/2975969.2975978workshop
Proceedings of the 15th International Workshop on Erlang
© 2016, ACM. This work is made available online in accordance with the publisher’s policies. This is the author created, accepted version manuscript following peer review and may differ slightly from the final published version. The final published version of this work is available at dl.acm.org / http://dx.doi.org/10.1145/2975969.2975978
Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.