<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated on Wed, 25 Nov 2009 09:59:59 -0800 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <atom:link href="http://software.intel.com/en-us/articles/intel-mpi-library-for-linux-kb/type/performance-and-optimization/feed/" rel="self" type="application/rss+xml" />
    <title>Intel Software Network articles feed</title>
    <link>http://software.intel.com/en-us/articles/intel-mpi-library-for-linux-kb/performance-and-optimization/</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Building the GAMESS with Intel® Compilers, Intel® MKL and Intel® MPI on Linux</title>
      <description><![CDATA[ <br /><b>Introduction :</b><br />This document explains how to build GAMESS using the Intel Software products:<br />Intel® C++ Compiler for Linux,<br />Intel® Fortran Compiler for LINUX,<br />Intel® MKL,<br />Intel® MPI for Linux.<br /><br /><br /><b>Version :</b><br />GAMESS version January 12, 2009 R3 for 64 bit IA64/x86_64.<br /><br /><b>Obtaining Source Code :</b><br />The GAMESS sources can be downloaded <a href="http://www.msg.chem.iastate.edu/gamess/download.html">here</a>.<br /><br /><b>Prerequisites :</b><br />Should be installed Intel® Compilers with Intel® MKL and Intel® MPI for Linux.<br /><br /><b>Environment Set Up :</b><br />Environment variables for the Intel(R) C++ Compiler Professional Edition for Linux, Intel(R) Fortran  Compiler Professional Edition for Linux and Intel(R) MPI should be set.<br />E.g.<br />$export INTEL_COMPILER_TOPDIR="/opt/intel/Compiler/11.1/046"<br />$. $INTEL_COMPILER_TOPDIR/bin/intel64/ifortvars_intel64.sh<br />$. $INTEL_COMPILER_TOPDIR/bin/intel64/iccvars_intel64.sh<br />$. /opt/intel/impi/3.2.1.009/bin64/mpivars.sh<br /><br /><b>Building the Application :</b><br />1)Copy/move tar file gamess-current.tar.gz to the directory /opt.<br /><br />2)Decompress source files<br />$ tar -zxvf gamess-current.tar.gz<br />.<br />3)<br />$cd ./gamess<br />.<br />4) Creating actvte.x file:<br />$cd ./tools<br />$cp actvte.code actvte.f<br />Replace all "*UNX" by " "(4 spaces with out " ") in the file actvte.f. Can be used any text editor.<br />$ifort -o actvte.x actvte.f<br />$rm actvte.f<br />$cd ..<br />.<br />5)Building the Distributed Data Interface(DDI) with Intel(R) MPI:<br />$cd ./ddi<br />a) Editing file ./compddi.<br />Set machine type (approximately line 18):<br />set TARGET=linux-ia64<br />Set MPI communication layer (approximately line 48):<br />set COMM = mpi<br />Set include directory for Intel® MPI (approximately line 105):<br />set MPI_INCLUDE_PATH = '-I/net/spdr62/opt/spdtools/impi/intel64/3.2.011/include64'<br />b)Build DDI with Intel(R) MPI<br />$ ./compddi &gt;&amp;compddi.log<br />c) If building completed successfully then library libddi.a will appear. Otherwise check compddi.log for errors.<br />d) $cd ..<br />.<br />6) Compiling the GAMESS:<br />a) Editing file ./comp<br />Set machine type (approximately line 15):<br />set TARGET=linux-ia64<br />Set the GAMESS root directory (approximately line 16):<br />chdir /opt/gamess<br />Uncomment line 1461:<br />setenv MKL_SERIAL YES<br />.<br />b) Editing file ./compall:<br />Set machine type (approximately line 16):<br />set TARGET=linux-ia64<br />Set the GAMESS root directory (approximately line 17):<br />chdir /opt/gamess<br />Set to use Intel® C++ Compiler (approximately line 70):<br />if  ($TARGET == linux-ia64) set CCOMP='icc'<br />c) Compiling the GAMESS:<br />$compall &gt;&amp;compall.log<br />Check file compall.log for errors.<br />d)<br />$cd ..<br />.<br />7)Liniking the GAMESS with Intel® Software products:<br />a) Editing file ./lked<br />Set machine type (approximately line 18):<br />set TARGET=linux-ia64<br />Set the GAMESS root directory (approximately line 19):<br />chdir /opt/games<br />Set MKL environment (approximately line 509):<br />setenv MKLPATH /net/spdr62/opt/spdtools/compiler/cpro/Compiler/11.1/046/mkl/lib/em64t<br />setenv MKL_SERIAL YES<br />set mklver=10<br />Set the message passing libraries in a single line (approximately line 714):<br />set MSG_LIBRARIES='../ddi/libddi.a -L/net/spdr62/opt/spdtools/impi/intel64/3.2.011/lib64 -lmpi -lmpigf -lmpigi -lrt -lpthread'<br />b) Link the GAMESS<br />$./lked &gt;&amp;lked.log<br />If linking completed successfully then executable file gamess.00.x will appear. Otherwise check lked.log for errors.<br /><br /><b>Running the Application :</b><br />This section below describes how to execute GAMESS with Intel® MPI. For further information check file ./ddi/readme.ddi.<br />For the testing GAMESS will be used script rungms as the base.<br />1)<br />Only few amends are needed.<br />Set the target for execution to mpi (line 59):<br />set TARGET=mpi<br />.<br />Set a directory SCR where large temporary files can reside(line 60):<br />E.g.<br />set SCR=/opt/gamess/tests<br />.<br />Correct the setting environment variables ERICFMT and MCPPATH (lines 127and 128):<br />E.g.<br />setenv ERICFMT /opt/gamess/ericfmt.dat<br />setenv MCPPATH /opt/gamess/mcpdata<br />.<br />Replace all “~$USER” by “/opt/gamess/tests”. Or by other directory.<br />NOTE: Directory /opt/gamess/tests/scr should exist. If no then create it.<br />Replace all “/home/mike/gamess” by “/opt/gamess”.<br />Correct the setting environment variables for Intel® MKL and MPI (lines 948 and 953):<br />E.g.<br />setenv LD_LIBRARY_PATH /opt/Compiler/11.1/046/mkl/lib/em64t<br />setenv LD_LIBRARY_PATH /opt/intel/impi/intel64/3.2.011/lib64:$LD_LIBRARY_PATH<br />.<br />Correct setting environment variables to execution Intel® MPI path (line 954):<br />E.g. set path=(/opt/intel/impi/intel64/3.2.011/bin64 $path)<br />.<br />Done.<br />2)<br />Now choose the testcase from directory ./tests and run GAMESS.<br />E.g.<br />$./rungms exam08<br />The output data will be stored in the directory /opt/gamess/scr.<br /><br />3) To execute GAMESS on 2 or more processes on 1 node:<br />$ ./rungms exam08 00 2<br /> ]]></description>
      <link>http://software.intel.com/en-us/articles/building-gamess-with-intel-compilers-intel-mkl-and-intel-mpi-on-linux</link>
      <pubDate>Wed, 26 Aug 2009 07:02:09 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/building-gamess-with-intel-compilers-intel-mkl-and-intel-mpi-on-linux#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/building-gamess-with-intel-compilers-intel-mkl-and-intel-mpi-on-linux</guid>
      <category>Intel Software Network communities</category>
      <category>Intel® MKL</category>
      <category>Intel® MPI Library</category>
      <category>Intel® C++ Compiler for Linux* Knowledge Base</category>
      <category>Intel® Fortran Compiler for Linux* Knowledge Base</category>
      <category>Intel® MPI Library for Linux* Knowledge Base</category>
    </item>
    <item>
      <title>WPS V3.1.1 installation best known method for Linux with Intel® Fortran Compiler v. 11.1</title>
      <description><![CDATA[ <br /><b>Introduction :</b><br />This document explains how to build the WRF Preprocessing System(WPS) v3.1.1 using the Intel® Fortran Compiler for Linux, for example, version 11.1.046.<br /><br /><b>Version </b>: v3.1.1<br /><br /><b>Obtaining Source Code :</b><br />The source codes can be downloaded <a href="http://www.mmm.ucar.edu/wrf/users/download/get_sources.html">here</a>. The input data for geogrid.exe can be downloaded <a href="http://www.mmm.ucar.edu/wrf/src/wps_files/">here</a>. The input data for ungrid.exe you can download <a href="http://www.mmm.ucar.edu/wrf_tmp/WRF_OnLineTutorial/SOURCE_DATA/JAN00.tar.gz">here</a>.<br /><br /><b>Prerequisites :</b><br />You should have installed:<br />1)The Weather Research &amp; Forecasting(WRF) v3. WRF V3.1.1 installation BKM for Linux with Intel C++ and Fortran COMPILER v. 11.1 you can find <a href="http://software.intel.com/en-us/articles/wrf-installation-bkm-for-linux-with-intel-c-and-fortran-compiler-v-111/">here</a>.<br />2)The Jasper library. Installation best know method with the Intel® Compilers you can find <a href="http://software.intel.com/en-us/articles/jasper-installation-bkm/">here</a>.<br />3)The JPEG library. Installation best know method with the Intel® Compilers you can find <a href="http://software.intel.com/en-us/articles/jpeg-7-installation-bkm/">here</a>.<br />4)The Zlib  library. Installation best know method with the Intel® Compilers you can find <a href="http://software.intel.com/en-us/articles/zlib-library-installation-bkm-with-intelr-c-compiler-111046-for-linux/">here</a>.<br />5)The NCAR Graphics* library. How to build with Intel(R) Compilers you can find <a href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-ncar-graphics-with-the-intel-compilers/">here</a>.<br /><br /><b>Environment Set Up :</b><br />You should set up environment variables for Intel(r) Fortran Compiler and netCDF. If you want to build distributed version of WPS then you should set up environment variables for Inte MPI.<br />E.g.<br />$export INTEL_COMPILER_TOPDIR="/opt/spdtools/compiler/cpro/Compiler/11.1/046"<br />$. $INTEL_COMPILER_TOPDIR/bin/intel64/ifortvars_intel64.sh<br />$export NETCDF=/opt/netcdf<br />$. /opt/intel/impi/3.2.1.009/bin64/mpivars.sh<br /><br /><br /><b>Source Code Changes : </b>none<br /><br /><b>Building the Application :</b><br />1)Copy/move tar file WPSV3.1.1.TAR.gz to the directory /opt.<br />2)Decompress source files<br />$tar -zxvf WPSV3.1.1.TAR.gz<br />.<br />3)Set up environment variables which are mentioned in section "Configuration Set Up"<span lang="EN-US" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;"></span>.<br />4)Configure WPS<br />$./configure<br />NOTE from WPS README:<br />"<br />If the user is on a recognized architecture, the<br />configure script will display a list of available<br />compile options (usually serial vs parallel, Grib 2<br />enabled vs a "NO GRIB2" option).  For some OS options,<br />there are multiple compilers that are supported.<br />".<br />Before compile you should check variables<br />NCARG_ROOT<br />and <br />WRF_DIR<br />in the post-configure file “configure.wps”.<br />5)Compile WPS<br />$./compile<br />.<br /><b>Running the Application :<br /></b>1)<br />To test geogrid.exe in serial mode you should download workloads <a href="http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz">geog_v3.1.tar.gz </a>(e.g. /opt/WPS/WPS_DATA). Then to decompress this tar file<br />$tar -zxvf geog_v3.1.tar.gz<br />. <br />Edit  namelist.wps file (which should be in the root WPS directory /opt/WPS):<br />In the section &amp;geogrid you should change parameter  geog_data_path to path where geog_v3.1.tar.gz was decompressed(e.g. geog_data_path=/opt/WPS/WPS_DATA/geog_v3.1/geog). <br />Execute $ ./geogrid.exe. <br />When geogrid.exe has finished running, the message: <br />!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />! Successful completion of geogrid. !<br />!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br /><br />2) <br />To test ungrid.exe in serial mode you should download workloads <a href="http://www.mmm.ucar.edu/wrf_tmp/WRF_OnLineTutorial/SOURCE_DATA/JAN00.tar.gz">JAN00.tar.gz</a>. Then decompress it(/opt/WPS/WPS_DATA):<br />$tar -zxvf JAN00.tar.gz<br />.<br />Run g1print utility:<br />$./util/g1print.exe ../WPS_DATA/JAN00/2000012412.AWIPSF<br />.<br />Link in the AWIP Vtable:<br />$ln -sf ungrib/Variable_Tables/Vtable.AWIP<b></b> Vtabl<br />.<br />Link in the GRIB data by making use of the script link_grib.csh:<br />$./link_grib.csh ../WPS_DATA/JAN00/2000012<br />.<br />Edit namelist.wps, and set the following:<br />start_date = '2000-01-24_12:00:00',<br />end_date = '2000-01-25_12:00:00',<br />interval_seconds = 21600,<br /><b></b>Run ungrib to create the intermediate files:<br />$./ungrib.exe<br />After finishing you should get message:<br />!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />! Successful completion of geogrid.!<br />!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br /><br />3)<br />To test metgrid.exe you should run it:<br />$./metgrid.exe<br />After finishing you should get message:<br />!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />! Successful completion of geogrid.!<br />!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br /><br /><b>Known Issues or Limitations :</b><br />1)<br />If WPS should be built by Intel MPI then change variables FC and CC by <br />CC=mpiicc<br />FC=mpiifort<br />in the post-configure file “configure.wps”.<br />2)<br />In file namelist.wps variable max_dom =2 (by default). But for provided workload it should be equal 1:<br />max_dom =1. <br /><br /><br /><b></b> ]]></description>
      <link>http://software.intel.com/en-us/articles/wps-v311-installation-bkm-for-linux-with-intel-fortran-compiler-v-111</link>
      <pubDate>Wed, 19 Aug 2009 05:33:56 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/wps-v311-installation-bkm-for-linux-with-intel-fortran-compiler-v-111#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/wps-v311-installation-bkm-for-linux-with-intel-fortran-compiler-v-111</guid>
      <category>Parallel Programming</category>
      <category>ISN General</category>
      <category>Intel® MPI Library</category>
      <category>Intel® C++ Compiler for Linux* Knowledge Base</category>
      <category>Intel® Fortran Compiler for Linux* Knowledge Base</category>
      <category>Intel® MPI Library for Linux* Knowledge Base</category>
    </item>
  </channel></rss>