MPI Computing Guide
MPI Computing Guide
2010
MPI Computing Guide
Contents
1 Introduction 2
2 Nomenclature 2
3 Terms 3
4 Technical Requirements 3
4.1 Interconnection Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.1.1 Network Technology . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.1.2 Name Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.1.3 Unique Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.2 Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.3 Daemon/Service User Account . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.4 Operating System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
9 Licensing 12
10 Troubleshooting 13
10.1 No Connection to MPI Nodes . . . . . . . . . . . . . . . . . . . . . . . . . 13
10.2 No More TCP Connections Possible . . . . . . . . . . . . . . . . . . . . . . 13
January 6, 2010 1
1 Introduction
The term ”MPI Computing” describes a software parallelization approach for cluster sys-
tems, i.e. computers connected via a fast interconnection network and used as a single
”supercomputer”. A computational task, like an EM simulation, is divided into several
parts and those parts are handled by the machines in the cluster in parallel. Typically, the
parts are not completely independend and, thus, the different computers need to exchange
data via the interconnection network and, additionally, have to be synchronized at certain
points. For this purpose the so-called ”Message Passing Interface” (MPI), which describes
a programming interface, has become a de facto standard and because of its importance
this type of parallel computing is often refered to as ”MPI Computing”. This manual con-
tains an overview of the MPI Computing capabilities of CST STUDIO SUITETM as well
as detailed installation instructions which help you to properly install and set up parallel
simulations on your cluster system. Please do not hesitate to contact us in case of any
problems during the setup process or during the simulations itself. In such a case please
send detailed information about the problem you are facing to [email protected].
2 Nomenclature
The following section explains the nomenclature used in this document.
<...> Within commands the sections you should replace according to your
environment are enclosed in ”<...>”. For example ”<CST DIR>”
should be replaced by the directory where you have installed CST
STUDIO SUITETM (e.g. ”c:\Program Files\CST STUDIO SUITE
2010”).
Those icons indicate that the following section of the text applies
only to a certain operating system:
= MS Windows
R
= Linux
January 6, 2010 2
3 Terms
The following section contains the definition of some important terms needed to under-
stand the rest of the manual.
MPI Frontend Node The cluster node on which the simulation is started using
the CST front end (CST DESIGN ENVIRONMENTTM ).
MPI Client Node A cluster node which takes part in an CST MPI simulation.
An MPI Frontend Node can be an MPI Client Node
at the same time.
4 Technical Requirements
This section provides you with information about the hardware as well as the software
requirements necessary to successfully perform CST simulations on your cluster system.
Please ensure that your system is configured according to the following points to avoid
problems during the setup or operation of CST STUDIO SUITETM on your system.
January 6, 2010 3
can be performed using the ping command. To check if node A can ”see” node B just
enter the following command on a terminal on node A:
ping <node B>
If node B answers correctly the two nodes are in the same network and can communicate
during an MPI simulation.
January 6, 2010 4
5 Supported Solvers and Features
Currently not all solvers and not all features are supported for MPI Computing. The fol-
lowing table gives you an overview of the solvers which currently support MPI Computing
and of the features currently missing for those solvers. Additionally, the case of combined
MPI Computing and GPU Computing is handled for the transient solver. The other solvers
do not support combined MPI Computing and GPU Computing.
MPI+GPU
CST Product Solver Supported? Unsupported Features
January 6, 2010 5
6.1.1 Installation on Windows
An MPI Frontend Node needs a full installation of the CST STUDIO SUITETM program
files. Thus, install at least the feature set shown in figure 1 on each Windows node of your
cluster which should be able to start a CST MPI simulation. Note that the ”License
Server” as well as the ”Dongle Driver” option must only be selected if the node should
act as license server for your installation.1 To start MPI simulations on other Windows
Figure 1: Please install at least the following install set on an MPI Frontend Node
running on Windows.
machines you have to provide the credentials of an user account which will be used by
CST STUDIO SUITETM to log in to the MPI Client Nodes and start the simulation
processes. Make sure that the user account you provide is known by MPI Client Node
machines. This is typically ensured if the user account is a domain account. However, if
you are providing a local user account for this purpose please make sure that this account is
defined on all MPI Client Nodes identically and the password for the account is also the
same on all nodes. To register the user account please open a terminal (Start→Run→cmd)
and go to the installation directory of CST STUDIO SUITETM then enter the command:
mpiexec -register
1
It will not harm the setup if you select the other features as well.
January 6, 2010 6
You will then be asked for the user credentials and the information you provide will be
written to the registry (see fig. 2). Please note that this step is mandatory even if your
MPI Client Nodes are all running on Linux. In this case, the user credentials behave just
as a ”dummy” setting. Actually, a different authentication method based on a passphrase
is used to log in and start processes on MPI Client Nodes running a Linux operating
system.
January 6, 2010 7
Figure 3: Linux install set for MPI Frontend Node. If the node will also act as license
server please select additionally the option ”License Server” as well as ”Dongle Drivers”. If
the MPI Frontend Node should also be an MPI Client Node select additionally the
option ”MPI Client Node”.
January 6, 2010 8
6.2.2 Installation on Linux
To install a machine as MPI Client Node, please execute the Linux installer which can
be found on both the Windows and Linux DVD. Select the install option ”MPI Client
Node”3 . This will install all Linux solver executables as well as the daemon necessary to
start CST MPI jobs. If the MPI Client Node should also act as MPI Frontend Node
please refer to section 6.1.2. Please note that the CST MPI service will be started using the
user account you provide during the installation. For security reasons you may consider
using a non-root account.
January 6, 2010 9
button. The settings can then be loaded afterwards using the ”Load File...” button. This
exported file corresponds to the CST machine file format described in section 7.2.
# CSTMachineFile 20080509
# Template for machine configuration in internal CST format.
# The very first line should be as shown, with version numbering.
# It is possible to set common default settings, to be applied to
# all nodes in the cluster, unless differently specified.
# All lines beginning with "#" are comments
#
# The default settings are specified here:
#
# DefaultInstallationFolder <PATH_TO_INSTALLATION_FOLDER>
# DefaultTempFolder <PATH_TO_TEMP_FOLDER>
# DefaultMachineArchitecture <ARCHITECTURE>
#
# Then each machine node is specified as follows:
# HostName # <PATH_TO_INSTALLATION_FOLDER> ; <PATH_TO_TEMP_FOLDER> ; <ARCHITECTURE> ; <ActiveFlag>
#
# Architecture can have following values:
# Windows IA32, Windows AMD64, Linux IA32, Linux AMD64
#
# The <ActiveFlag> can have the following values: Active, Inactive
#
# The following list provides an example for a valid list of machines
# machine1 uses its own settings
machine1 # "C:\Program Files (x86)\CST STUDIO SUITE 2010" ; "C:\temp" ; Windows AMD64 ; Active
# machine2 uses the default settings
machine2 # ; ; ; Active
January 6, 2010 10
8.1 MPI Frontend Node , MPI Client Nodes
In case you have set up your cluster such that the CST STUDIO SUITETM files are accessed
by the MPI Client Nodes using a shared folder you only need to update this single shared
installation. This may be performed automatically via the internet or manually using the
CST Update Manager.
In case you have performed a local installation of CST STUDIO SUITETM on each node
you can install the service pack on the MPI Frontend Node and then send the update to
the MPI Client Nodes using the following procedure. First update your MPI Frontend
Node using the automatic update or the CST Update Manager. This updated installation
will now act as a reference installation for your MPI Client Nodes. The cluster update
uses the Distributed Computing (DC) system. Thus, you need to start the CST DC Main
Controller on your MPI Frontend Node. For this purpose start the ”Main Controller
Administration” found in the Windows Start Menu folder of your CST installation. In the
DC Main Controller enter the path to your updated CST STUDIO SUITETM installation
in the ”Reference Installation” field and a temporary folder. Then start the DC Main
Controller by clicking on ”Start Server”. Figure 4 shows you how the dialog looks like.
After you have started the DC Main Controller open the ”MPI Computing” dialog and
press the ”Select Main Controller” button. Enter the name of your MPI Frontend
Node where you have started the DC Main Controller before and press OK. Then press
the ”Update Active Nodes” button to send the updated executables to the active MPI
Client Nodes.
Figure 4: The DC Main Controller GUI must contain the path to your reference installation
as well as a temporary folder.
January 6, 2010 11
8.2 MPI Frontend Node , MPI Client Nodes
Please note that the update of your Linux installation can only be performed either by
root or by the ”Main User”.8 The update of your Linux installation can be performed
using a script called ”update with supfile” which can be found in your CST installation
folder. Download the service pack from the CST fileserver and make the file accessible to
all your cluster nodes. Log in as root or as ”Main User” to all the cluster nodes and enter
the command
Please note that the full path to the file is required and that the quotes are mandatory.
9 Licensing
The number of acceleration tokens in your license determines the maximum number of
nodes which you can use in a single simulation. The number of tokens required to perform
a simulation is listed in the ”Acceleration” dialog of your solver. Table 1 shows you the
maximum number of MPI nodes with a certain number of tokens. Simulations on clusters
with more than 32 nodes are currently not supported.
Table 1: The table shows the maximum number of MPI nodes with a certain number of
tokens.
8
This is the user account you specified during the installation process.
January 6, 2010 12
10 Troubleshooting
10.1 No Connection to MPI Nodes
If you cannot connect to the MPI Client Nodes make sure that the firewall on your
nodes is configured properly. The following programs need access to the network:
• cstsmpd
• ParaControl
• mpiexec
This applies to the 32 bit versions as well as to the 64 bit versions of the programs found in
the AMD64 subfolder of your installation (on Windows) or in the LinuxAMD64 subfolder
(on Linux). Additionally, make sure that the hostnames are resolved properly to IPv4
addresses. If even the command ”ping <remote host>” fails this is an indication that
your network is not correctly configured.
January 6, 2010 13