The University of Southampton
University of Southampton Institutional Repository

Parallel execution and scriptability in micromagnetic simulations

Parallel execution and scriptability in micromagnetic simulations
Parallel execution and scriptability in micromagnetic simulations
We demonstrate the feasibility of an ‘encapsulated parallelism’ approach towards micromagnetic simulations that combines offering a high degree of flexibility to the user with the efficient utilization of parallel computing resources.
While parallelization is obviously desirable to address the high numerical effort required for realistic micromagnetic simulations through utilizing now widely available multiprocessor systems (including desktop multicore CPUs and computing clusters), conventional approaches towards parallelization impose strong restrictions on the structure of programs: numerical operations have to be executed across all processors in a synchronized fashion. This means that, from the user’s perspective, either the structure of the entire simulation is rigidly defined from the beginning and cannot be adjusted easily, or making modifications to the computation sequence requires advanced knowledge in parallel programming.
We explain how this dilemma is resolved in the Nmag simulation package in such a way that the user can utilize without any additional effort on his side both the computational power of multiple CPUs and the flexibility to tailor execution sequences for specific problems: simulation scripts written for single processor machines can just as well be executed on parallel machines and behave in precisely the same way, up to increased speed. We provide a simple instructive magnetic resonance simulation example that demonstrates utilizing both custom execution sequences and parallelism at the same time. Furthermore, we show that this strategy of encapsulating parallelism even allows to benefit from speed gains through parallel execution in simulations controlled by interactive commands given at a command line interface.
0021-8979
Fischbacher, Thomas
d3282f31-0a6a-4d19-80d0-e3bebc12f67a
Franchin, Matteo
9e00aaa2-959e-420f-854c-3b43aece85e3
Bordignon, Giuliano
eb3e7975-60d5-401e-9227-5c1bd7d0fcc3
Knittel, Andreas
f2336826-cc4d-4362-a241-1bf90c4941d4
Fangohr, Hans
9b7cfab9-d5dc-45dc-947c-2eba5c81a160
Fischbacher, Thomas
d3282f31-0a6a-4d19-80d0-e3bebc12f67a
Franchin, Matteo
9e00aaa2-959e-420f-854c-3b43aece85e3
Bordignon, Giuliano
eb3e7975-60d5-401e-9227-5c1bd7d0fcc3
Knittel, Andreas
f2336826-cc4d-4362-a241-1bf90c4941d4
Fangohr, Hans
9b7cfab9-d5dc-45dc-947c-2eba5c81a160

Fischbacher, Thomas, Franchin, Matteo, Bordignon, Giuliano, Knittel, Andreas and Fangohr, Hans (2009) Parallel execution and scriptability in micromagnetic simulations. Journal of Applied Physics, 105 (07D527). (doi:10.1063/1.3073937).

Record type: Article

Abstract

We demonstrate the feasibility of an ‘encapsulated parallelism’ approach towards micromagnetic simulations that combines offering a high degree of flexibility to the user with the efficient utilization of parallel computing resources.
While parallelization is obviously desirable to address the high numerical effort required for realistic micromagnetic simulations through utilizing now widely available multiprocessor systems (including desktop multicore CPUs and computing clusters), conventional approaches towards parallelization impose strong restrictions on the structure of programs: numerical operations have to be executed across all processors in a synchronized fashion. This means that, from the user’s perspective, either the structure of the entire simulation is rigidly defined from the beginning and cannot be adjusted easily, or making modifications to the computation sequence requires advanced knowledge in parallel programming.
We explain how this dilemma is resolved in the Nmag simulation package in such a way that the user can utilize without any additional effort on his side both the computational power of multiple CPUs and the flexibility to tailor execution sequences for specific problems: simulation scripts written for single processor machines can just as well be executed on parallel machines and behave in precisely the same way, up to increased speed. We provide a simple instructive magnetic resonance simulation example that demonstrates utilizing both custom execution sequences and parallelism at the same time. Furthermore, we show that this strategy of encapsulating parallelism even allows to benefit from speed gains through parallel execution in simulations controlled by interactive commands given at a command line interface.

Text
Fisc_08.pdf - Author's Original
Download (118kB)

More information

Published date: 2009

Identifiers

Local EPrints ID: 64923
URI: https://eprints.soton.ac.uk/id/eprint/64923
ISSN: 0021-8979
PURE UUID: 9d85fc9f-08aa-4e3b-8a82-d6ca870f65b6

Catalogue record

Date deposited: 26 Jan 2009
Last modified: 13 Mar 2019 20:20

Export record

Altmetrics

Download statistics

Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.

View more statistics

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of https://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×