IBM Support

How do I recompile lam-mpi 7.1.2 (both g77 and ifort)?

Troubleshooting


Problem

How do I recompile lam-mpi 7.1.2 (both g77 and ifort)?

Resolving The Problem

How do I recompile lam-mpi 7.1.2 (both g77 and ifort)?

Here is the procedure to compile and install the latest lam-mpi in the /share/apps directory :

  1. with the intel ifort compiler :
    1. configuration :
      ./configure --with-fc=ifort --with-rsh="ssh -x" --prefix=/share/apps/lam-7.1.2.intel
    2. build :
      make
    3. install :
      make install
    4. module setup :
      Please refer to Module Setup article for detailed module setup.
      The associated module file is : hpc/lam712-i (symlink)
    5. testings :
      Create the following entry for testings : /home/toor3/run/test/mpi/lam-7.1.2.intelPut basic test code in this directory and a hostlist as well.
  2. Using g77:
    1. Configuration :
      ./configure --with-fc=g77 --with-rsh="ssh -x" --prefix=/share/apps/lam-7.1.2.g77
    2. Build :
      make
    3. Install :
      make install
    4. Modules configuration :
      Please refer to Module Setup article for detailed module setup.
      The module file is : hpc/lam712-g (symlink)
    5. Testings :
      The test directory is :
      /home/toor3/run/test/mpi/lam-7.1.2.g77
      In order to run the tests, you only have to do the following :
      1. Load the correct module :
        module load hpc/lam712-g
      2. Boot the lam universe :
        lamboot -prefix $MPIHOME -v hostlist
      3. compile an example :
        mpicc -o cpi cpi.c
      4. Run the example :
        mpirun n1-16 ./cpi
        In this case, the output is :
        ---------------------------------------------------------------------------------------
        [toor3@frontend lam-7.1.2.g77]$ mpirun n1-16 ./cpi
        Process 8 of 16 is on compute-1-9.local
        Process 4 of 16 is on compute-1-5.local
        Process 2 of 16 is on compute-1-3.local
        Process 10 of 16 is on compute-1-11.local
        Process 1 of 16 is on compute-1-2.local
        Process 12 of 16 is on compute-1-13.local
        Process 9 of 16 is on compute-1-10.local
        Process 3 of 16 is on compute-1-4.local
        Process 6 of 16 is on compute-1-7.local
        Process 5 of 16 is on compute-1-6.local
        Process 11 of 16 is on compute-1-12.local
        Process 14 of 16 is on compute-1-15.local
        Process 13 of 16 is on compute-1-14.local
        Process 7 of 16 is on compute-1-8.local
        Process 0 of 16 is on compute-1-1.local
        Process 15 of 16 is on compute-1-16.local
        pi is approximately 3.1415926544231274, Error is 0.0000000008333343
        wall clock time = 0.000462

[{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.1.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
11 September 2018

UID

isg3T1014103