Search This Blog

Tuesday, May 6, 2014

Compiliing openmpi using Intel compiler


# Download the source code from  http://www.open-mpi.org/software/

# configuring 
./configure --prefix=/opt/openmpi-1.8.1-Intel CC=icc CXX=icpc F77=ifort FC=ifort

# parallel make using 4 cores
 make -j 4 all

# installation with sudo permission
 sudo bash
 make install

# "sudo make install" does not work due to environment settings.

Other source: https://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-open-mpi-with-the-intel-compilers

Installation/Linux/OpenFOAM-2.3.0/Ubuntu



sudo apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev \ 
gnuplot libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin \ 
libboost-system-dev libboost-thread-dev libgmp-dev libmpfr-dev

cd ~
mkdir OpenFOAM
cd OpenFOAM
wget "http://downloads.sourceforge.net/foam/OpenFOAM-2.3.0.tgz?use_mirror=mesh" -O OpenFOAM-2.3.0.tgz
wget "http://downloads.sourceforge.net/foam/ThirdParty-2.3.0.tgz?use_mirror=mesh" -O ThirdParty-2.3.0.tgz
 
tar -xzf OpenFOAM-2.3.0.tgz 
tar -xzf ThirdParty-2.3.0.tgz
 
 
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI
echo "alias of230='source \$HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc $FOAM_SETTINGS'" \
>> $HOME/.bashrc
source  $HOME/.bashrc
of230
 
 
 
cd $WM_THIRD_PARTY_DIR
# This next command will take a while... somewhere between 5 minutes to 30 minutes.
./Allwmake > make.log 2>&1
#update the shell environment
wmSET $FOAM_SETTINGS
 
 
#Go into OpenFOAM's main source folder
cd $WM_PROJECT_DIR
# This next command will take a while... somewhere between 30 minutes to 3-6 hours.
./Allwmake > make.log 2>&1
#Run it a second time for getting a summary of the installation
./Allwmake > make.log 2>&1


cd $WM_THIRD_PARTY_DIR
./makeParaView4 -qmake $(which qmake-qt4)
 
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers 
wmSET $FOAM_SETTINGS
./Allwclean 
./Allwmake


http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.3.0/Ubuntu#Ubuntu_14.04

Labels