OpenMP is a cross-platform API that extends C, C++ and Fortran and provides shared-memory parallelism platform for those languages. The use of many cores and HPC technologies for scientific computing has been spread since the 1990s, and now takes part in many fields of research. The relative ease of implementing OpenMP, along with the development of multi-core shared memory processors (such as Intel Xeon Phi) makes OpenMP a favorable method for parallelization in the process of modernizing a legacy codes. Legacy scientific codes are usually holding large number of physical arrays which being used and updated by the code routines. In most of the cases the parallelization of such code focuses on loop parallelization. A key step in this parallelization is deciding which of the variables in the parallelized scope should be private (so each thread will hold a copy of them), and which variables should be shared across the threads. Other important step is finding which variables should be synchronized after the loop execution. In this work we present an automatic pre-processor that preforms these stages - AutOMP (Automatic OpenMP). AutOMP recognize all the variables assignments inside a loop. These variables will be private unless the assignment is of an array element which depend on the loop index variable. Afterwards, AutOMP finds the places where threads synchronization is needed, and which reduction operator is to be used. At last, the program provides the parallelization command to be used for parallelizing the loop.
Advising OpenMP Parallelization via a Graph-Based Approach with Transformers
Ben-Gurion University of the Negev(内盖夫本-古里安大学);Israel Atomic Energy Commission(以色列原子能委员会);Intel Labs(英特尔实验室);Nuclear Research Center – Negev(内盖夫核研究中心);Technion – Israel Institute of Technology(以色列理工学院)
Parallelization of JOREK-STARWALL for non-linear MHD simulations including resistive walls (Report of the EUROfusion High Level Support Team Projects JORSTAR/JORSTAR2)
托卡马克装置内的大尺度等离子体不稳定性会受到传导容器壁中流动的电流的影响。这涉及到非线性等离子体动力学及其与壁电流的相互作用。为了研究这个问题,求解磁流体动力学(MHD)方程的代码,称为JOREK [Huysmans G.T.A.和Czarny O. NF 47,659(2007); Czarny O.和Huysmans G. JCP 227,7423(2008)],偶联[Hoelzl M.,Journal of Physics:Conference Series,401,012010(2012)],其具有用于真空区域的模型和名为STARWALL的电阻性导电结构[Merkel P.,Strumberger E.,arXiv:150804911(2015)]。JOREK-STARWALL模型已经应用于执行垂直位移事件(VDE)、电阻壁模式(RWM)、静态H模式和垂直反冲ELM触发的模拟。在项目开始时,由于STARWALL和JOREK中相应的耦合例程消耗大量内存和挂钟时间,无法解决具有大量有限元三角形的实际墙壁结构。此外,STARWALL代码和JOREK耦合例程都仅通过OpenMP部分并行化。该项目的目的是实现MPI并行化,以减少内存消耗和执行时间,使大分辨率的模拟成为可能。
Model Coupling between the Weather Research and Forecasting Model and the DPRI Large Eddy Simulator for Urban Flows on GPU-accelerated Multicore Systems