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 :
- with the intel ifort compiler :
- configuration :
./configure --with-fc=ifort --with-rsh="ssh -x" --prefix=/share/apps/lam-7.1.2.intel - build :
make - install :
make install - module setup :
Please refer to Module Setup article for detailed module setup.
The associated module file is : hpc/lam712-i (symlink) - 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.
- configuration :
- Using g77:
- Configuration :
./configure --with-fc=g77 --with-rsh="ssh -x" --prefix=/share/apps/lam-7.1.2.g77 - Build :
make - Install :
make install - Modules configuration :
Please refer to Module Setup article for detailed module setup.
The module file is : hpc/lam712-g (symlink) - 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 :- Load the correct module :
module load hpc/lam712-g - Boot the lam universe :
lamboot -prefix $MPIHOME -v hostlist - compile an example :
mpicc -o cpi cpi.c - 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
- Load the correct module :
- Configuration :
[{"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"}}]
Was this topic helpful?
Document Information
Modified date:
11 September 2018
UID
isg3T1014103