����������� �� ��������� mpich

William Gropp � Ewing Lusk
������� ������� �.�. (���-��� ��������� �����)

����������

  • 10. ���������� MPE.

    10. ���������� MPE.

    � ������ ��������

    ���������� Mpe ����� ���� ��������������� � ����������� ��� ���������� ����� ������� ���������� MPI ��� �������������, �� ����� ��������� ������������ � ���������� mpich. ������������ ���������� ��� ����� � ������������ � ������������ ��������������� ���������� MPI. � ��������� ����� �� ��������������� ���������� mpe ��� ������ � MPICH, LAM'S MPI, SGI's MPI, IBM's MPI, � CRAY's MPI (��������� ��� �� ��������� �� �����).

    10.1 ��������� ������������

    � ������ ��������

    ������� ��� ���� ���������� ��� �������������� ������������:

    1. ������������� ���������� MPI (������������)

    2. ������������� ������ ������������ (������������/����������)

    3. ���������������� ��������� �������������/������ (����������)

    ������� ./configure �help �� �������� ������ �������� mpe, ����� ������� ������ �������/��������������.

    ��� ������������� ������������ ���������� MPI:

    -with-mpich=DIR ��������� ������� �������� ������, ��� ����������� MPICH (������ 1.0.13 ��� ����������).

    -with-mpichdev=subdir ���������� ���������� �����������/����������, �������� �� ������ ������������.

    -with-lam=DIR ���������� ������� �������� ������, ��� ���� ����������� LAM'S MPI

    -with-sp ���������� ����������� ���������� IBM POE/MPI

    -with-sgi ���������� ������������ ����������� ���������� SGI MPI

    -with-sgi64 ������������� ������������� ����������� ���������� SGI MPI, �������� �� � ���������� � ������ 64 bit

    -with-cray ������������� ������������� ����������� ���������� Cray MPI

    ���� ��� ����� ��������������� mpe � ����������� MPI, �������� �� �������������, �� ������ ����������, ��� � `configure.in' � �������� mpe ������������, ����� ����������, ���������� � ��. ������������ ��� ��������� ���� ���������� MPI. ����� �� ������� �������� ����������� ������ ���������� MPI � `configure.in'. ����������� ����������� autoconf ��� �������� ������ �������� ������������ (�������� ������������ mpe ��� ������ � ������������� autoconf 2.12). ��� ����� ����������� �������� ������������� ���������� MPI. ��� ����������� � ������� ����� AC ARG WITH.

    ������ ����������� ������� � ������������� ��������� �������������� MPI, ����������� ������� ��� MPI ����������� �������� include � ���������.

    ��������� ������������� ���������� MPI:

    -with-mpiinc=MPI INC ��������� ������� ��� MPI include, ��������, �I/pkgs/MPI/include

    -with-mpilibs=MPI LIBS ���������� �������������� MPI � ���������� MPI. ��������, �L$MPI LIB DIR �lfmpich �lpmpich �lmpich

    �������� ������ �������� ��������������� ��������� �������:

    -prefix=DIR ���������� ����� ������������� �������� ��� �������� `mpeinstall' ��� ������������ � MPICH ��� ������ ���� ��� �� ������������ �������, ������� ��� �������� ��������� � ������������ mpich ��� � �������� `mpiinstall' � �������� `mpich/util'. ���� �� ������ �����, �� �predix ��� ������ ��� �������� � ������������ mpich, �� ���� ������� ������������� ����� ��������������. �������� `mpeinstall' ��������� � DIR ������ ��������� ���������� � ����� include ������ � ��������� ����������� ��������. (��. ������ 10.4)

    -libdir=DIR. ���������� ������� �������� ������, ��� ����� ����������� ���������� mpe. ���� ������ �������� ���, �� ����� ������. ���� ������ ���������� ��� �� ������������� MPICH � �����������, ���� MPICH ������������ (-libdir ���������� �� �mpichdev).

    -bindir=DIR. ����� �������� ������ ��� ��������� jumpshot ������ � ����������� mpe. ���� ������� ����� ������� ������������ jumpshot � ����� ���, ��� ����� ���������� ���������� jumpshot. ��� ������������ � MPICH ��� ��������������� �������������. ���� ��� � ���� ������ ������, ���� ��������� ����� `libdir/../bin'. ���� �� �� ����������, �� ����� ������.

    -x-includes=DIR. ��� �������������� ������, ������������, ��� X ���� ����� include � DIR. ���� ������, ������������ ��������� ����� ��.

    -x-libraries=DIR �������������� ������, ������������ ����� X ��������� � DIR. ���� ������, ������������ ���� �������� ����� ��.

    ������������� ���������� ������������:

    -enable-echo �������� ������� ���. �� ��������� ��������.

    -enable-mpe graphics. ���� ������������� ��������� ������� ����������� ������������ mpe. ���� ��������, ������������ ����������� ������� X11 �� ����� ���������. ��� ����� ��� ������, ������� ���� �� ����� ������ include ��� �11, ���� �� ������������ ������� X11. �� ��������� enable=yes.

    -enable-f77. ���� ������������� ��������� ������������� ������������, ������� ������� �����-������ ���������� � �������. ��� ������������ � MPICH ������������ ������� ��� ��� ���������� �� �������� mpich �������� ������. �� ��� ����� � ��������. �� ��������� enable=yes.

    -enable-debug ���� ������������� �������� ������ ���������� � ��������������� ��������� � MPE � ��� SLOG-API. �� ��������� enable=no.

    -enable-jumpshot. ���� ������������� ��������� ��������������� ����������� �������������� jumpshot. �� ��������� enable=yes. ���� ���� �������� ������������ � �� �� �������������� � MPICH, �� ������ ����� ���� ���� � ������� ��� jumpshot ��� ���������� (-with-jumpshot home).

    -enable-buildingmpi. ���� ������������� ����������, ��� MPE �������� ��� ����� ������� ��������� MPICH. ��� ��������� �������� ������������� ��������� MPI. ���� ������������� �� ����������.

    -with-tcldir=TCL DIR. ���� ������������� ����������, ��� tcl ����������� � TCL.DIR. ��� ����� ���� ������ ������ 7 � TCL.DIR ������ ����� `lib/libtcl.a' � `include/tcl.h'. ��� ����� ������������ ������ ��� nupshot. ���� ���� ������������� ������, ������������ ����� �������� ����� ��� ����� � �������� mpe.

    -with-tkdir=TK DIR. ���� ������������� ���������, ��� tk �������� � TK.DIR. ��� ����� ���� ������ ������ 3, ���� �� ������ ������������ nupshot, � TK.DIR ������ ����� `lib/libtcl.a' � `include/tk.h'. ��� ����� ���� �� �� ��� TCL.DIR. ���� ������������� ��������, ������������ ����� ������ � �������� mpe ��� �����.

    -with-wishloc=WISHLOC. ���� ������������� ��������� ��� ���������� tcl/tk wish. ���� ������������� ��������, ������������ ����� �������� ����� � �������� mpe ��� ������. ������������ ������ ��� nupshot � upshot. ���������: ��� ��� tcl � tk ���������� ���������� ��������������� �������, �� � ����� ������ ��������� ��������� ������ �������, ������������ tcl/tk. ��������� ������ upshot, jumpshot �������� �� JAVA.

    -with-jumpshot home=JUMP DIR. ���� ������������� ��������� ���� � �������� �������� ������ � jumpshot. ��� ������������ � MPICH ���� �������� ������������� ��������������� �� ���������. ������ ��� ����� ��������. ���� �������������� ��� MPICH, ����� ������� JUMP.DIR ����� ��������������� jumpshot ������ � ����������� mpe.

    -with-jumpshot opts=JUMP OPTS. ���� ������������� ��������� ��� ���������� ������ ��������� � ������������ jumpshot. � ���������, ��-�� ������� �������� ��������� autoconf 2.12

    ���������� ���������� �� `AC.ARG.WITH', ������ 1 ����� ����� ���� �������� ������������ jumpshot. ���� ��������� ������, �������������� jumpshot �������� (��. ������ 10.2). ����� ���������� ��������� jumpshot, ��������� � ������� ������� jumpshot � �������� ./configure �help ��� �������� INSTALL � ���� ��������.

    -with-slog home=SLOG HOME. ���� ������������� ��������� ���� � �������� �������� ������, � ������� ���������� SLOG API. ��� ������������ SLOG API � MPICH �������� ������������� ��������������� �� ���������. ������ ����� ��� ����� ��������.

    -with-flib path leader=FLIB PATH LEADER. ���� �������� ����������, ��� ��������������� ���� � ���������� Fortran. �� ��������������� �� ��������� ��� ������������ � MPICH.

    -with-f77 extra flag=F77 EXTRA FLAG. ������������� ������������ ��� ������� ��������, ������� ������������ ��� ����������, � �� ��� ����������. � ��������� ����� ��� ������������ ��� ����������� Absoft �f option. ���� ������������� � MPICH, ��� ����� ��� ��� ����������.

    -with-cflags=MPE CFLAGS. ��� ���������� ������������� ��� ������������, ���������� �������������� CFLAGS ����������� CC.

    -with-fflags=MPE FFLAGS. ���������� ������������� ������������, ���������� �������������� FFLAGS ����������� � Fortran.

    10.2 ���������� �� ��������� MPE.

    � ������ ��������

    ��� ���� �������� � ���������� �������, ���������� mpe ����� ���� ����������� ��� ����� ��������� ������������ � ���������� (make) ���������� MPI. � ���� ������� 10.2 ����������� ���������� � ������� ��� ������� ���� ���������.

    10.2.1 ���������������� ���������� mpe ��� ����� ������������ mpich � ��������� ���������.

    � ������ ��������

    ��� ����� ��������� mpe �� ����� �� ������������� �� ������. ������������ ������� � ������� ������ �������� mpich ����������� ���������� � �������� �� ������������� � ��������� mpe � jumpshot. ���� �� ������ ������������� � ������, �� ���������� mpe � ����������� �������� jumpshot ����� ����������������� �������������. ������, ������������ ����� ��� ������� �������� ���, ������������ MPICH �� ���������� �����������:

    -mpe.opts=MPE.OPTS �jumpshot.opts=JUMP.OPTS

    ��� MPE OPTS ���� ���� ��� ������ �������, ��������� � 10.1, � JUMP OPTS ���� ���� �� ��������� ��������� � ������� 11.2.1. ������������ ������������ �mpe.opts ����������� ��� �������� ���������� ����� ��� ������������ MPE.

    ������ 1: ��������������� MPICH � ����������� mpe � jumpshot

    �� ������� ������ �������� mpich

    1) ./configure !mpich options?

    2) make

    ������ 2: ��������������� MPICH � tcldir � tkdir ��������� ��� ��������� ������������ �� ������� ������ �������� mpich

    1) ./configure !mpich options? �

    -mpe.opts=-with-tcldir=!path of tcldir? � �mpe.opts=-with-tkdir=!path of tkdir?

    2) make

    Example 3: ��������������� MPICH, ���������� mpe � jumpshot � ������������ ��������� �� ������� ������ �������� mpich

    1) ./configure !mpich options? �prefix=!install directory?

    2) make

    ��� �������, ���� ������ ���������� mpich, ���������� mpe � jumpshot � ������������� �����, ����� � ������ ����� ��� ������������. ���������� ��� 3 ������ � ������������ ����������, �������� make install � �������� mpich �������� ������.

    Example 4: ��������������� MPICH � ����������� mpe � ��� jumpshot.

    �� ������� ������ �������� mpich

    1) ./configure !mpich options? �mpe.opts=-enable-jumpshot=no

    2) make

    ���������������� jumpshot �������������� ����� ������������ mpe. ����� �������, ������, ��� ������� ���������� ������������ jumpshot ���������� ����� �������� ������������ ��� mpe. ����������� � ������� 11.2.2 �� ����������� �� ��������� ��������� jumpshot.

    ������ 5: ���������������� MPICH ��� ���������� mpe � jumpshot

    �� ������� ������ �������� mpich

    1) ./configure !mpich options? �nompe 2) make

    ����� ��������, ��� ����� ����� ���� ��� mpich ���������������, ����� ��������������� ���������� mpe � jumpshot ��� �������������� mpich. ���, ���� ����� ����������������� mpich, ����� �� ����� ����������������� ���������� mpe ��� jumpshot.

    10.2.2 ������������ ���������� mpe ��� ����� ������������ ���������� MPI. ��� ����� ��������� mpe ��������� ����������� ������������� ���������� MPI. ����, ���� ���������� MPI �� ���� MPICH, �� ������ �libdir ����������.

    ������ 1: ��������������� mpe � SGI's MPI � ��� jumpshot

    � �������� mpe �������� ������

    1) ./configure �with-sgi �libdir=!directory path of libdir?

    ��� ./configure �with-sgi64 �libdir=!directory path of libdir?

    2) make

    ���������� �� �������� �with-jumpshot home (� �� ������������� MPICH) jumpshot �� ���������������.

    ������ 2: ��������������� mpe � IBM's MPI � jumpshot

    �� ������� ������ �������� mpe

    1) ./configure �with-sp �libdir=!directory path of libdir? �

    -with-jumpshot.home=!directory path of jumpshot?

    2) make

    ���������� �� �������� �bindir=DIR ���������� ��������� jumpshot ����� �������� � `libdir/../bin'. ���� ���������� ������� ������������ ������� bin, �� �������������� ���:

    � �������� �������� ������ mpe

    1) ./configure �with-sp �libdir=!directory path of libdir? � �with-jumpshot.home=!directory path of jumpshot? � �bindir=!directory path of bindir?

    2) make

    ������ 3: ��������������� mpe ��� ������������ ���������� MPICH � � jumpshot.

    � �������� �������� ������ mpe

    1) ./configure �with-mpich=!directory path of MPICH? � �with-mpichdev=!library subdirectory for MPICH?

    2) make

    ���� ���� ���������� MPICH ����� ���������� `mpich/jumpshot', �� ����� ��������������� � ���������� �with-jumpshot home. ���� ���, �� �� ��������� ��� ����������������.

    ������ 4: ��������������� mpe � SGI's MPI � �������� ��������� � ������������ jumpshot.

    � �������� mpe �������� ������

    1) ./configure �with-sgi �libdir=!directory path of libdir? � �with-jumpshot.home=!directory path of jumpshot? � �with-jumpshot.opts=!jumpshot option? 2) make

    10.3 ������� �������� MPE

    � ������ ��������

    ��� ���������� ����, ���������� mpe ����������� �� ���� ������������� ���������. ������ ���������� MPI ������� ��������� ��������� ������� �������� ���� ���������. �� ����� ������������ ������������ ���� ����� � ������ ���������� � ������������� ����������. ��� ���������� ����������� � Makefile � �������� `mpe/contrib/test'. ��� ������ ���� ����������:

    LOG LIB = link path ���������� ��� ����� � ����������� logging,

    TRACE LIB = link path ���������� ��� ����� � ����������� tracing ,

    ANIM LIB = link path ���������� ��� ����� � ����������� animation ,

    FLIB PATH = link path ���������� ��� ����� �������� �� �������� � ����������� logging.

    �� ����� �������� make ��������� C�-��������� `cpi' (� �������� `mpe/contrib/test') ����������� � ������ �� ������������ ���� ���������. ��� ������ �� make �������� ��������� �� ����������� ������� ������������ ����� �����. ����� ��� �� �������� `mpe/contrib/test' ��������� Fortran-��������� `fpi' ����� ������� � ����������� logging � ������� FLIB PATH. ��������� ����� ����� ����� ����� ���������� � ����� make. ���� ��� ����� �������, �� ��� ������������ ���� ����� �������������� ����� � ����� ����������.

    10.4 ��������� MPE.

    � ������ ��������

    �������� `mpeinstall' ��������� �� ����� ������������. ���� ������������� � MPICH, �������� `mpiinstall' ������������ �������� `mpeinstall'. ������, `mpeinstall' ����� ���� ����������� ��� �� ����. ��� �������� ������ �� ������ � ������������ ������ ���� �� ������ ���������� ���������� mpe � ������������� �����, ��� �� ����� ������������ ������. ��������� ����� �������� �� ������������ include, lib, bin, � example. ���� jumpshot ��� ��������������, �������� `mpeinstall' �������� ���������� jumpshot � ������� bin.


<<< ���������� ��������: 7  8 >>>