Qlogic OFED+ Host Specifikace Strana 71

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 204
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 70
5–Using QLogic MPI
Getting Started with MPI
IB6054601-00 H 5-3
A
Getting Started with MPI
This section shows how to compile and run some simple example programs that
are included in the InfiniPath software product. Compiling and running these
examples enables you to verify that QLogic MPI and its components have been
properly installed on the cluster. See “QLogic MPI Troubleshooting” on page D-12
if you have problems compiling or running these examples.
These examples assume that your cluster’s policy allows you to use the mpirun
script directly, without having to submit the job to a batch queuing system.
Copy Examples
Start by copying the examples to your working directory:
$ cp /usr/share/mpich/examples/basic/* .
Create the mpihosts File
Next, create an MPI hosts file in the same working directory. It contains the host
names of the nodes in your cluster on which you want to run the examples, with
one host name per line. Name this file mpihosts. The contents can be in the
following format:
hostname1
hostname2
...
More details on the mpihosts file can be found in “mpihosts File Details” on
page 5-14.
Compile and Run an Example C Program
In this step you will compile and run your MPI program.
QLogic MPI uses some shell scripts to find the appropriate include files and
libraries for each supported language. Use the script mpicc to compile an MPI
program in C and the script mpirun to execute the file.
The supplied example program cpi.c computes an approximation to pi. First,
compile it to an executable named cpi. For example:
$ mpicc -o cpi cpi.c
By default, mpicc runs the GNU gcc compiler, and is used for both compiling and
linking, the same function as the
gcc command.
NOTE:
For information on using other compilers, see “To Use Another Compiler” on
page 5-8.
Zobrazit stránku 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 203 204

Komentáře k této Příručce

Žádné komentáře

General-tools-and-instruments Werkzeug Benutzerhandbücher

Beginnend mit 0-9

Klicken Sie auf den Alphabet unten, um zur vollständigen Liste der Modelle zu gelangen, die mit diesem Buchstaben beginnen

Modelle Dokumententyp
107
Bedienungsanleitung   General Tools and Instruments 107 User Manual, 2 Seiten
119
Bedienungsanleitung     General Tools and Instruments 119 User Manual, 1 Seiten
146
Bedienungsanleitung     General Tools and Instruments 146 User Manual, 2 Seiten
147
Bedienungsanleitung     General Tools and Instruments 147 User Manual, 1 Seiten
14712
Bedienungsanleitung   General Tools and Instruments 14712 User Manual, 1 Seiten
800543
Bedienungsanleitung    General Tools and Instruments 800543 Manuel d'utilisation, 1 Seiten
80560
Bedienungsanleitung     General Tools and Instruments 80560 User Manual, 1 Seiten
828
Bedienungsanleitung    General Tools and Instruments 828 Manuel d'utilisation, 1 Seiten
840 Pro Doweling Kit
Bedienungsanleitung     General Tools and Instruments 840 Pro Doweling Kit User Manual, 36 Seiten
840 use of Dowel Centers
Bedienungsanleitung     General Tools and Instruments 840 use of Dowel Centers User Manual, 4 Seiten
841
Bedienungsanleitung     General Tools and Instruments 841 User Manual, 8 Seiten
849
Bedienungsanleitung     General Tools and Instruments 849 User Manual, 2 Seiten
850
Bedienungsanleitung     General Tools and Instruments 850 User Manual, 2 Seiten
860 Addendum
Bedienungsanleitung   General Tools and Instruments 860 Addendum User Manual, 1 Seiten
860 v.1
Bedienungsanleitung     General Tools and Instruments 860 v.1 User Manual, 16 Seiten
860 v.2
Bedienungsanleitung     General Tools and Instruments 860 v.2 User Manual, 44 Seiten
861
Bedienungsanleitung   General Tools and Instruments 861 User Manual, 16 Seiten
870 v.1
Bedienungsanleitung   General Tools and Instruments 870 v.1 User Manual, 2 Seiten
870 v.2
Bedienungsanleitung     General Tools and Instruments 870 v.2 User Manual, 46 Seiten
880
Bedienungsanleitung   General Tools and Instruments 880 User Manual, 2 Seiten