Simulation of Modelica Models on the CUDA Architecture
Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Simulations are very important for many reasons, and finding ways of accelerating simulations are therefore interesting. In this thesis the feasibility of automatically generating simulation code for a limited set of Modelica models that can be executed on NVIDIAs CUDA architecture is studied. The OpenModelica compiler, an open-source Modelica compiler, was for this purpose extended to generate CUDA code.
This thesis presents an overview of the CUDA architecture, and looks at the problems that need to be solved to generate efficient simulation code for this architecture. Methods of finding parallelism in models that can be used on the highly parallel CUDA architecture are shown, and methods of efficiently using the available memory spaces on the architecture are also presented.
This thesis shows that it is possible to generate CUDA simulation code for the set of Modelica models that were chosen. It also shows that for models with a large amount of parallelism it is possible to get significant speedups compared with simulation on a normal processor, and a speedup of 4.6 was reached for one of the models used in the thesis. Several suggestions on how the CUDA architecture can be used even more efficiently for Modelica simulations are also given.
Place, publisher, year, edition, pages
2009. , 61 p.
Modelica, OpenModelica, CUDA, Parallelization
IdentifiersURN: urn:nbn:se:liu:diva-52060ISRN: LIU-IDA/LITH-EX-A--09/062--SEOAI: oai:DiVA.org:liu-52060DiVA: diva2:279156
2009-11-19, Donald Knuth, Linköpings Universitet, Linköping, 15:30 (English)
Fritzson, Peter, Professor