Documente Academic
Documente Profesional
Documente Cultură
0 New Features
Workshop 10
Distributed ANSYS
• Topics
– Setup Distributed ANSYS
– Run Distributed ANSYS
• launcher90
• Command line
– Troubleshooting Tips
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-2
ANSYS v9.0
Distributed ANSYS…Installation
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-3
ANSYS v9.0
Distributed ANSYS - Setup
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-4
ANSYS v9.0
Distributed ANSYS - Setup
Workshop
hosts90.ans
• Created using ANS_ADMIN Utility
• Choose Configuration Options Configure Cluster
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-5
ANSYS v9.0
Distributed ANSYS - Setup
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-6
ANSYS v9.0
Distributed ANSYS – Setup
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-7
ANSYS v9.0
Distributed ANSYS – Setup
Workshop
.rhosts
• Contains all hostnames of all machines being used and the user’s login id
•Used by rsh to communicate to other machines
•Must exist in the user’s home directory
•Permissions of .rhosts file must be set to 600 (chmod 600 .rhosts)
pghosiris.ansys.com glk
pghisis.ansys.com glk
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-8
ANSYS v9.0
Distributed ANSYS - Setup
Workshop
machines.LINUX
• Contains machine hostnames of the machines to be used
• Used by MPICH as a list of machines
• Use “uname –n” to get node name of machine
• Located in: /ansys_inc/v90/ansys/mpich/linia##/share
• One line for every processor to be used on each machine
pghosiris.ansys.com
pghosiris.ansys.com
pghosiris.ansys.com
pghosiris.ansys.com
pghisis.ansys.com
pghisis.ansys.com
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-9
ANSYS v9.0
Distributed ANSYS – Setting the Environment
Workshop
• For csh or tcsh shells, add the following line to your .cshrc,
.tcshrc, or equivalent shell startup file:
source /ansys_inc/v90/ansys/bin/confdismpich90.csh
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-10
ANSYS v9.0
Distributed ANSYS – Setting the Environment
Workshop
For example:
rsh pghosiris env | grep ANSYS90_DIR
The output should read:
ANSYS90_DIR=/ansys_inc/v90/ansys
and
rsh pghosiris env | grep LD_LIBRARY
The output should read:
LD_LIBRARY_PATH=/ansys_inc/v90/ansys/lib/ <platform>:/ansys_inc/v90/a
nsys/ syslib/<platform>:/ansys_inc/v90/commonfiles/tcl/lib/ <platform>
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-11
9.0 New Features
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-13
ANSYS v9.0
Distributed ANSYS - Running (launcher90)
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-14
ANSYS v9.0
Distributed ANSYS - Running (launcher90)
Workshop
• MPI type
(MPI, MPICH, MPICH_SHMEM)
• MPICH_SHMEM – Shared
Memory version of MPICH…Used
for Shared-memory Linux
machines.
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-15
ANSYS v9.0
Distributed ANSYS - Running (launcher90)
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-16
ANSYS v9.0
Distributed ANSYS - Running (launcher90 – Multiple Hosts)
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-17
ANSYS v9.0
Distributed ANSYS - Running (launcher90 – Multiple Hosts)
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-18
ANSYS v9.0
Distributed ANSYS - Running (Launcher90 – Multiple Hosts)
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-19
9.0 New Features
• For MPICH:
ansys90 -pp -mpi mpich -dis -machines machine1:np:machine2:np:machine3:np
where machine1 (or 2 or 3) is the name of the machine and np is the
number of processors you want to use on the corresponding machine.
• For example, if you run a job in batch mode using two machines (one with four
processors and one with two processors) and MPI, with an input file named
input1 and an output file named output1, the launch command would be:
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-22
9.0 New Features
Troubleshooting Tips
ANSYS v9.0
Troubleshooting Tips
Workshop
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-24
ANSYS v9.0
Troubleshooting Tips
Workshop
p2_12443: p4_error: : 14
p4_error: latest msg from perror: Broken pipe
p0_12371: (0.621094) net_send: could not write to fd=5, errno = 32
p0_12371: p4_error: net_send write: -1
3 - MPI_RECV : Message truncated
[3] Aborting program !
October 1, 2004
Inventory #002157
© 2004 ANSYS, Inc. 9.0 New Features WS10-26