ANSYS Mpi
ANSYS Mpi
ANSYS Mpi
%p
%v
%o
%a
2.1.1.1. Adding Hosts for Parallel Processing with the cfx5parhosts Utility
You can add new hosts to ANSYS CFX's database for parallel runs using the cfx5parhosts utility; this is done by running:
CFXROOT\bin\cfx5parhosts argument list
where argument list corresponds to one or more of the arguments listed below.
Argument
-add host[,host,...]
Description
Add information about the named host(s) to the file. This assumes that ANSYS CFX is
installed in the same directory on each listed host as on the host on which you are running.
host may be specified as [user@]hostname[:cfx-5 root] if the user name or the ANSYS
CFX installation root directory differs from the local host.
To add a set of separately-installed Windows hosts to the hostinfo.ccl file, where the
installation may be in a different place on each host, the recommended method is to gather
the hostinfo.ccl files created on each host by the installation process, and merge them
together using the -merge switch.
-benchmark
Runs a standard benchmark case, and fills in the Relative Speed for the local host. The
benchmark case will usually take less than 5 minutes to run.
-file file
-merge file
-no-update
After modifying the file, write back the information available without attempting to fill in
any missing pieces.
-strict
Used with -update. Normally, hosts that exist on the network but cannot be connected to
with rsh or ssh are included in the resulting file with a comment. This switch will exclude
these hosts.
-system
-update
Updates the specified host information file. If any hosts do not have an architecture
specified in the existing hostinfo.ccl file (for example, because it was added via the add switch), it will connect to the host and query it to fill in the Host Architecture String
parameter. This is the default behavior. Note that if the Installation Root parameter is
incorrect for the host, it will use the standard system commands to guess a generic
architecture string. This can happen if you use -add to include a host with a different
installation directory than the local one.
-user
or
if the working directory has been shared from the submitting
PATHMAP=C:\Users\<UserName>;\\<SubmitHostName>\<UserName>
machine.
CLUSTERHOST=<HeadNodeName>
to be used when submitting jobs from machines other than the headnode.
ACCOUNT=<OtherUserDomain>\<OtherUserName>
<OtherUserDomain>
PROCESSORSPERSOLVER=2 an optional setting (default setting is 1) that allocates the number of cores per partition. This is typically
used on hosts that are limited by memory bandwidth such as Xeon-based machines.
7. Set up ANSYS Workbench for a network as described in Network Installation and Product Configuration.
To submit a job:
1. Start the CFX-Solver Manager (either using CFX standalone or from ANSYS Workbench) on the submitting machine using the
software installed on the headnode.
2. Ensure that the Run Mode on the Run Definition tab of the CFX-Solver Manager is set to Submit to Windows CCS or HPC
Queue. Otherwise, set up the CFX-Solver Manager as normal.
3. Click Start Run on the CFX-Solver Manager to start the simulation. The first time a simulation is run, supply the required
credentials that are prompted (this prompt may appear behind the CFX-Solver Manager window). You may elect to have these
credentials saved to avoid repeated prompting of these credentials.
Note:
1. For simulations making use of User Fortran, you must ensure that the Fortran is linked against the solvermsmpi.lib. This is done by making the appropriate changes to cfx5mkext.ccl.
2. %USERPROFILE% is typically C:\Documents and Settings\<Username>\ on XP, or
C:\Users\<UserName> on Server HPC 2008.
3. To use on ANSYS Workbench with Parameters and Design Points, start the CFX-Solver Manager ensure that the Run
Mode on the Run Definition tab of the CFX-Solver Manager is set to Submit to Windows CCS or HPC
Queue, set the number of processes, then click Save Settings. When the user clicks Update all Design Points
each parameter or design point will be solved on the cluster.