Wednesday, July 10, 2019

Install OpenMPI-2.1.5 with GCC-4.4 (USC user)

1. Assum that GCC compiler was installed on USC
check 
$ gcc -v
gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)
Note: install Conda2, will have GCC-7.2.0
2. Configuration and install OpenMPI
cd openmpi-2.1.5 ./configure --prefix=/uhome/p001cao/local/openmpi-2.1.5-gcc-4.4 CC=gcc CXX=g++ F77=gfortran FC=gfortran --with-devel-headers --enable-binaries make -j8 make all install
Test the result
# mpicc -v
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
3. Make module file

create file "openmpi-2.1.5"
# for Tcl script use only
set topdir /uhome/p001cao/local/openmpi-2.1.5-gcc-4.4
set version 2.1.5
prepend-path PATH $topdir/bin
prepend-path LD_LIBRARY_PATH $topdir/lib
prepend-path INCLUDE $topdir/include
prepend-path MANPATH $topdir/share/man

save it in: /uhome/p001cao/local/share/lmodfiles/mpi/gcc-4.4

No comments:

Post a Comment