<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5583" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=710470817-17072008>I'm not sure who the 
best person is to receive these changes: We've been encountering complications 
whe converting users to OFED 1.3 because the scripts provided for configuring 
the shell (mpivars.sh and mpivars.csh) don't update the library path. This can 
lead to MPI programs failing to link or failing to run. The fix is to modify the 
spec files for the RPMs for these packages so that they set the LD_LIBRARY_PATH 
as well as the PATH.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=710470817-17072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=710470817-17072008>The fix for 
MVAPICH-1.0.1 is this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=710470817-17072008></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=710470817-17072008>
<DIV><FONT face=Arial size=2><SPAN class=818440721-16072008>--- 
mvapich.spec.orig   2008-07-16 17:06:44.000000000 -0400<BR>+++ 
mvapich.spec        2008-07-16 
16:49:27.000000000 -0400<BR>@@ -300,17 +300,25 @@<BR> if ! echo \${PATH} | 
grep -q %{_prefix}/bin ; 
then<BR>         export 
PATH=%{_prefix}/bin:\${PATH}<BR> fi<BR>+if ! echo \${LD_LIBRARY_PATH} | 
grep -q %{_prefix}/lib ; then<BR>+        
export 
LD_LIBRARY_PATH=%{_prefix}/lib:%{_prefix}/lib:/shared:\${LD_LIBRARY_PATH}<BR>+fi<BR> EOF</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=818440721-16072008> # Script for 
csh<BR> cat <<EOF > 
%{build_root}/%{_prefix}/bin/%{shell_scripts_basename}.csh<BR>-if (?$path) 
then<BR>-    if ( "\${path}" !~ *%{_prefix}/bin* ) 
then<BR>-        setenv path 
%{_prefix}/bin:\$path<BR>+if ("\$path" !~ *%{_prefix}/bin) 
then<BR>+       set path=(%{_prefix}/bin 
\$path)<BR>+endif<BR>+<BR>+if ("1" == "\$?LD_LIBRARY_PATH") 
then<BR>+    if ("\$LD_LIBRARY_PATH" !~ *%{_prefix}/lib) 
then<BR>+        setenv LD_LIBRARY_PATH 
%{_prefix}/lib:%{_prefix}/lib/shared:\${LD_LIBRARY_PATH}<BR>     
endif<BR> else<BR>-    setenv path 
%{_prefix}/bin:<BR>+    setenv LD_LIBRARY_PATH 
%{_prefix}/lib:%{_prefix}/lib/shared<BR> endif<BR>+<BR> EOF<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=818440721-16072008></SPAN></FONT> </DIV>
<DIV><SPAN class=818440721-16072008><SPAN class=710470817-17072008><FONT 
face=Arial size=2>and the fix for MVAPICH2-1.0.3 is 
this:</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=818440721-16072008><SPAN class=710470817-17072008><FONT 
face=Arial size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=818440721-16072008><SPAN class=710470817-17072008><FONT 
face=Arial size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=818440721-16072008><SPAN class=710470817-17072008><FONT 
face=Arial size=2>--- ../mvapich2.spec.orig       
2008-07-16 17:17:10.000000000 -0400<BR>+++ 
mvapich2.spec       2008-07-17 09:03:19.000000000 
-0400<BR>@@ -261,12 +261,16 @@</FONT></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=818440721-16072008><SPAN class=710470817-17072008><FONT 
face=Arial size=2> # Additionally, create the mpivars.[c]sh 
files.<BR> cat >bin/mpivars.csh <<EOF<BR>-if (\$?path) 
then<BR>-    if ( "\${path}" !~ *%{_prefix}/bin* ) then<BR>+if 
("\$path" !~ *%{_prefix}/bin) then<BR>        
set path = ( %{_prefix}/bin \$path )<BR>     
endif<BR>+<BR>+if ("1" == "\$?LD_LIBRARY_PATH") then<BR>+    if 
("\$LD_LIBRARY_PATH" !~ *%{_prefix}/lib) 
then<BR>+        setenv LD_LIBRARY_PATH 
%{_prefix}/lib:\${LD_LIBRARY_PATH}<BR>+    
endif<BR> else<BR>-    set path = ( %{_prefix}/bin 
)<BR>+    setenv LD_LIBRARY_PATH 
%{_prefix}/lib:%{_prefix}/lib/shared<BR> endif</FONT></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=818440721-16072008><SPAN class=710470817-17072008><FONT 
face=Arial size=2> if (\$?MANPATH) then<BR>@@ -282,7 +286,9 @@<BR> if 
! echo \${PATH} | grep -q %{_prefix}/bin ; then<BR>     
PATH=%{_prefix}/bin:\${PATH}<BR> fi<BR>-<BR>+if ! echo \${LD_LIBRARY_PATH} 
| grep -q %{_prefix}/lib ; then<BR>+        
export LD_LIBRARY_PATH=%{_prefix}/lib:\${LD_LIBRARY_PATH}<BR>+fi<BR> if ! 
echo \${MANPATH} | grep -q %{_prefix}/man ; then<BR>     
MANPATH=%{_prefix}/man:\${MANPATH}<BR> fi<BR></FONT></SPAN></DIV></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>--</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Michael Heinz</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Principal Engineer, Qlogic 
Corporation</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>King of Prussia, 
Pennsylvania</FONT></DIV>
<DIV> </DIV></BODY></HTML>