Mahder Gebremedhin
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Afshin Hemmati Moghadam
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Peter Fritzson
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Kristian Stavåker
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Ladda ner artikel
http://dx.doi.org/10.3384/ecp12076393Ingår i: Proceedings of the 9th International MODELICA Conference; September 3-5; 2012; Munich; Germany
Linköping Electronic Conference Proceedings 57:41, s. 393-404
Publicerad: 2012-11-19
ISBN: 978-91-7519-826-2
ISSN: 1650-3686 (tryckt), 1650-3740 (online)
New multi-core CPU and GPU architectures promise high computational power at a low cost if suitable computational algorithms can be developed. However; parallel programming for such architectures is usually non-portable; low-level and error-prone. To make the computational power of new multi-core architectures more easily available to Modelica modelers; we have developed the ParModelica algorithmic language extension to the high-level Modelica modeling language; together with a prototype implementation in the OpenModelica framework. This enables the Modelica modeler to express parallel algorithms directly at the Modelica language level. The generated code is portable between several multi-core architectures since it is based on the OpenCL programming model. The implementation has been evaluated on a benchmark suite containing models with matrix multiplication; Eigen value computation; and stationary heat conduction. Good speedups were obtained for large problem sizes on both multi-core CPUs and GPUs. To our knowledge; this is the first high-performing portable explicit parallel programming extension to Modelica.
Inga referenser tillgängliga