کد مقاله | کد نشریه | سال انتشار | مقاله انگلیسی | نسخه تمام متن |
---|---|---|---|---|
568364 | 876375 | 2011 | 10 صفحه PDF | دانلود رایگان |
![عکس صفحه اول مقاله: A framework for parallel computational physics algorithms on multi-core: SPH in parallel A framework for parallel computational physics algorithms on multi-core: SPH in parallel](/preview/png/568364.png)
In this paper, a simulation framework that enables distributed numerical computing in multi-core shared-memory environments is presented. Using multiple threads allows a single memory image to be shared concurrently across cores but potentially introduces race conditions. Race conditions can be avoided by ensuring each core operates on an isolated memory block. This is usually achieved by running a different operating system process on each core, such as multiple MPI processes. However, we show that in many computational physics problems, memory isolation can also be enforced within a single process by leveraging spatial sub-division of the physical domain. A new spatial sub-division algorithm is presented that ensures threads operate on different memory blocks, allowing for in-place updates of state, with no message passing or creation of local variables during time stepping. Additionally, the developed framework controls task distribution dynamically ensuring an events based load balance. Results from fluid mechanics analysis using Smoothed Particle Hydrodynamics (SPH) are presented demonstrating linear performance with number of cores.
► Techniques for programming numerical simulators on multi-core are developed.
► Shared memory facilitates the use of new fine-grained domain distribution techniques.
► Port based thread coordination techniques are developed.
► New spatial and temporal paradigms allow load balanced, thread safe numerical codes.
► An SPH solver is shown to scale with processor number using the developed framework.
Journal: Advances in Engineering Software - Volume 42, Issue 11, November 2011, Pages 999–1008