<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-25770801</id><updated>2012-02-16T09:42:03.211-08:00</updated><category term='Compiler'/><category term='AMBER9'/><category term='AMBER8'/><category term='Amber10'/><category term='GNU'/><category term='AmberTools'/><category term='Visualization'/><category term='Intel'/><category term='amber7'/><category term='AT15'/><category term='Tiger'/><category term='Amber11'/><title type='text'>AMBER on Macintosh</title><subtitle type='html'>This is an archive of issues for &lt;a href="http://ambermd.org/"&gt;AMBER&lt;/a&gt; running on Macintosh computers. For reporting issues to be solved, please report it &lt;a href="http://archive.ambermd.org/"&gt;in the AMBER mail reflector&lt;/a&gt;.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://amberonmac.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>48</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25770801.post-8203571406542150096</id><published>2011-04-23T16:10:00.000-07:00</published><updated>2011-04-23T16:20:04.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AT15'/><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><title type='text'>Building AmberTools 1.5 on a 10.5.x or 10.6.x with gcc/gfortran 4.3</title><content type='html'>I'll be using BASH environment in my examples here. Although I am a
die-hard TCSH fan, I also speak BASH. I envision this document is
for first time users who are somehow macports savvy. To learn more
about macports, see http://guide.macports.org/ .
&lt;p&gt;
&lt;h4&gt;10.5.x / 10.6.x&lt;/h4&gt;
    Macports gcc45 is a set of stable compilers that you should be trying
    first. You are also advised to unset MKL_HOME since MKL gives some bad
    results for certain tests.
&lt;p&gt;
    Supposed that you downloaded the source code of AmberTools 1.5 with your
    web-browser, the normal place of the source code archive file was saved
    is probably your own Downloads folder. ( ~/Downloads )
&lt;p&gt;
    Now uncompress the archive and put it into the /opt directory. The reason
    that I chose this path is that I can always remove the whole contents of
    /opt folder without interfering your daily operations with your Macintosh.
&lt;pre&gt; $ tar jxvf ~/Download/AmberTools-1.5.tar.bz2 -C /opt&lt;/pre&gt;
&lt;p&gt;
    Set up the environment variable, if these variables have already been set
    in your ~/.bashrc file, please just verify the values of variable and modify
    accordingly, and then open a new terminal session.
&lt;pre&gt;        $ export AMBERHOME=/opt/amber11
        $ export PATH="$AMBERHOME/bin:$PATH"
        $ export MPI_HOME=$AMBERHOME
        $ unset MKL_HOME
        (note: "unset" doesn't work on CSH, please use "unsetenv" instead)
        $ echo 'export AMBERHOME=/opt/amber11' &gt;&gt; ~/.bashrc
        $ echo 'export PATH="$AMBERHOME/bin:$PATH"' &gt;&gt; ~/.bashrc
        $ echo 'export MPI_HOME=$AMBERHOME' &gt;&gt; ~/.bashrc
        $ cd /opt/amber11/AmberTools/src&lt;/pre&gt;
&lt;p&gt;
    Configure for building serial amber
&lt;pre&gt;        $ ./configure -macAccelerate gnu&lt;/pre&gt;
&lt;p&gt;
    Build the serial AT15
&lt;pre&gt;        $ make&lt;/pre&gt;
&lt;p&gt;
    Test the serial build
&lt;pre&gt;        $ cd ../test&lt;/pre&gt;
&lt;p&gt;
    Clean the file after the serial build is finished.
&lt;pre&gt;        $ cd ../src
        $ make clean&lt;/pre&gt;
&lt;p&gt;
    Download the openmpi source code from open-mpi.org
&lt;pre&gt;        $ cd ~/Downloads
        $ curl -O http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.bz2&lt;/pre&gt;
&lt;p&gt;
    Uncompress this source archive
&lt;pre&gt;        $ cd /opt/amber11/AmberTools/src
        $ tar jxvf ~/Downloads/openmpi-1.4.3.tar.bz2&lt;/pre&gt;
&lt;p&gt;
    Build amber's own openmpi
&lt;pre&gt;        $ ./configure_openmpi&lt;/pre&gt;
        ( If you use TCSH/CSH as your login shell, you'd need to run
          "rehash" command before continue following procedures. )
&lt;p&gt;
    Configure parallel ambertools
&lt;pre&gt;        $ ./configure -mpi -macAccelerate gnu&lt;/pre&gt;
&lt;p&gt;
    Build some parallel components of ambertools
&lt;pre&gt;        $ make&lt;/pre&gt;
&lt;p&gt;
    Test parallel set
&lt;pre&gt;        $ cd ../test
        $ export DO_PARALLEL='mpirun -np 2'
        $ ./test_at_parallel.sh&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-8203571406542150096?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8203571406542150096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8203571406542150096'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2011/04/building-ambertools-15-on-105x-or-106x.html' title='Building AmberTools 1.5 on a 10.5.x or 10.6.x with gcc/gfortran 4.3'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-256257062666725295</id><published>2011-04-22T17:20:00.000-07:00</published><updated>2011-04-23T16:20:56.577-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AT15'/><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><title type='text'>Building AmberTools 1.5 on a 10.4.x Tiger with gcc/gfortran 4.3</title><content type='html'>I'll be using BASH environment in my examples here although I am a
die-hard TCSH fan, I also speak BASH. I envision this document is
for first time users who are somehow macports savvy. To learn more
about macports, see http://guide.macports.org/ .
&lt;p&gt;
    The only reason that I am writing something for 10.4.x is that I have a
    intel-cpu 10.4.x box and "because I can". A very important limit of 10.4.x
    is that you can only build a gcc/gfortran as new as gcc43. So for a
    macports user like me, I just do "sudo port install gcc43 gcc_select".
    (After using macports with different compilers for a while, many people
     should be able to appreciate how handy gcc_select is...)
&lt;p&gt;
    Supposed that you downloaded the source code of AmberTools 1.5 with your
    web-browser, the normal place of the source code archive file was saved
    is probably your own Downloads folder. ( ~/Downloads )
&lt;p&gt;
    Now uncompress the archive and put it into the /opt directory. The reason
    that I chose this path is that I can always remove the whole contents of
    /opt folder without interfering your daily operations with your Macintosh.
&lt;pre&gt;        $ tar jxvf ~/Download/AmberTools-1.5.tar.bz2 -C /opt&lt;/pre&gt;
&lt;h4&gt;SERIAL AmberTools&lt;/h4&gt;
&lt;p&gt;
    Add "&lt;code&gt;#include &amp;lt;unistd.h&amp;gt;&lt;/code&gt;" to AmberTools/src/ptraj/trajectory.c
&lt;pre&gt;        $ cd /opt/amber11/AmberTools/src/ptraj
        $ curl -O http://mjhsieh.github.com/a15_trajectory.patch
        $ patch -p0 &lt; a15_trajectory.patch&lt;/pre&gt;
Somehow my macports gcc43 doesn't understand &lt;code&gt;off_t&lt;/code&gt; inside &lt;code&gt;ptraj/trajectory.c&lt;/code&gt;. The situation is quite weird, since &lt;code&gt;off_t&lt;/code&gt; is a posix standard, meaning that it should be a default everywhere. (updated: unistd.h is not included in ANSI standard.) Anyway, doing this doesn't hurt. (Updated: The reason that I didn't put this in the source tree was that I don't think 10.4.x tiger is a popular OS of choice for a Mac.)
&lt;p&gt;
    Set up the environment variable, if these variables have already been set
    in your .bashrc file, please just verify the values of variable and modify
    accordingly, and then open a new terminal session.
&lt;pre&gt;        $ export AMBERHOME=/opt/amber11
        $ export PATH="$AMBERHOME/bin:$PATH"
        $ export MPI_HOME=$AMBERHOME
        $ echo 'export AMBERHOME=/opt/amber11' &gt;&gt; ~/.bashrc
        $ echo 'export PATH="$AMBERHOME/bin:$PATH"' &gt;&gt; ~/.bashrc
        $ echo 'export MPI_HOME=$AMBERHOME' &gt;&gt; ~/.bashrc
        $ cd /opt/amber11/AmberTools/src&lt;/pre&gt;
    For ambertools with xLEaP, we used default setting.
&lt;pre&gt;        $ ./configure gnu&lt;/pre&gt;
    For ambertools without xLEaP, generally good for 10.4.x, since many people
    probably didn't install the developers' tools with X11 option activated.
&lt;pre&gt;        $ ./configure -noX11 gnu&lt;/pre&gt;
&lt;p&gt;
    Build the serial AT15
&lt;pre&gt;        $ make&lt;/pre&gt;
        (cheering after it finished without problems)
&lt;p&gt;
    Test the serial build
&lt;pre&gt;        $ cd ../test
        $ ./test_at_serial.sh&lt;/pre&gt;
        (cheering after it finished without problems)
&lt;p&gt;
    Clean the file after the serial build is finished.
&lt;pre&gt;        $ cd ../src
        $ make clean&lt;/pre&gt;
&lt;h4&gt;PARALLEL AmberTools&lt;/h4&gt;
    Download the openmpi source code from open-mpi.org
&lt;pre&gt;        $ cd ~/Downloads
        $ curl -O http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.bz2&lt;/pre&gt;
&lt;p&gt;
    Uncompress this source archive
&lt;pre&gt;        $ cd /opt/amber11/AmberTools/src
        $ tar jxvf ~/Downloads/openmpi-1.4.3.tar.bz2&lt;/pre&gt;
&lt;p&gt;
    Build amber's own openmpi
&lt;pre&gt;        $ ./configure_openmpi&lt;/pre&gt;
        (cheering after it finished without problems)
&lt;p&gt;
    Configure parallel ambertools
&lt;pre&gt;        $ ./configure -mpi gnu&lt;/pre&gt;
&lt;p&gt;
    Build some parallel components of ambertools
&lt;pre&gt;        $ make&lt;/pre&gt;
        (cheering after it finished without problems)
&lt;p&gt;
    Test
&lt;pre&gt;        $ cd ../test
        $ export DO_PARALLEL='mpirun -np 2'
        $ ./test_at_parallel.sh&lt;/pre&gt;

There you have it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-256257062666725295?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/256257062666725295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/256257062666725295'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2011/03/building-ambertools-15-on-104x-tiger.html' title='Building AmberTools 1.5 on a 10.4.x Tiger with gcc/gfortran 4.3'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-9122153635932230248</id><published>2011-04-18T10:17:00.000-07:00</published><updated>2011-04-18T10:18:28.431-07:00</updated><title type='text'>AmberTools 1.5, the Intel compilers, and the Intel Math Kernel Library (MKL)</title><content type='html'>We're pleased to announce the release of AmberTools 1.5, now available from &lt;a href="http://ambermd.org/#AmberTools"&gt;the Amber website&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
It includes several new packages:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt; &lt;b&gt;MMPBSA.py&lt;/b&gt;, a much-expanded program for energetic analyses of trajectories
&lt;/li&gt;
&lt;li&gt; &lt;b&gt;amberlite&lt;/b&gt;, a simplified interface for mm-pbsa analyses of protein-ligand
interactions
&lt;/li&gt;
&lt;li&gt; &lt;b&gt;MCPB&lt;/b&gt;, a platform for developing parameters for active sites of
metalloproteins
&lt;/li&gt;
&lt;li&gt; &lt;b&gt;cpptraj&lt;/b&gt;, an expanded trajectory analysis program
&lt;/li&gt;
&lt;li&gt; &lt;b&gt;mdgx&lt;/b&gt;, a coding platform for explicit-solvent MD simulations
&lt;/li&gt;
&lt;li&gt; updates to &lt;b&gt;GAFF&lt;/b&gt; (general Amber force field) and to the RNA force fields&lt;/li&gt;
&lt;/ul&gt;
You may install AmberTools 1.5 on top of an existing Amber 11 / AmberTools 1.4 installation. For instructions, please see the web site.&lt;br /&gt;
&lt;br /&gt;
There are two traps I've discovered during the testing phase, related to AmberTools 1.5, the Mac, and the Intel compilers.&lt;br /&gt;
&lt;br /&gt;
The first is that, if you're using the Intel compilers, it matters what version of the GNU compilers (gcc, etc.) you've selected. That's because parts of the code use the c++0x version of the C++ standard, and the version of the C++ header files becomes important. If you use the MacPorts GCC 4.4 or 4.5, you'll get ugly errors like this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
/opt/local/include/gcc44/c++/bits/stringfwd.h(67): error: identifier "char16_t" is undefined
&lt;/div&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;template&amp;lt;&amp;gt; struct char_traits&amp;lt;char16_t&amp;gt;; &lt;/div&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;^&lt;/div&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
/opt/local/include/gcc44/c++/bits/stringfwd.h(68): error: identifier "char32_t" is undefined&lt;/div&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;template&amp;lt;&amp;gt; struct char_traits&amp;lt;char32_t&amp;gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;^&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: inherit;"&gt;The solution, if you get such errors, is to use the command &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo gcc_select&lt;/span&gt;, and choose a version of the GNU compilers that came with the XCode development tools. This will present the Intel compilers with a compatible version of the C and C++ headers. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
A second problem is that some parts of Amber give bad results with the Intel MKL libraries. The solution here is simple: Don't use them. Make sure that the environment variables &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;MKLROOT&lt;/span&gt; and &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;MKL_HOME&lt;/span&gt; are unset (note: If they are set, the Amber configuration script will attempt to use an MKL in the location they point to). Instead, configure AmberTools with the &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;–macAccelerate&lt;/span&gt; switch.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-9122153635932230248?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/9122153635932230248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/9122153635932230248'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2011/04/ambertools-15-intel-compilers-and-intel.html' title='AmberTools 1.5, the Intel compilers, and the Intel Math Kernel Library (MKL)'/><author><name>Mr Gronk</name><uri>http://www.blogger.com/profile/08547593352989658586</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-3507046400649610819</id><published>2010-10-06T06:57:00.000-07:00</published><updated>2010-10-06T20:28:02.750-07:00</updated><title type='text'>Amber Tutorial B6</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Some users have noticed that the menus in Sirius don't pop over the display window when working through &lt;/span&gt;&lt;a href="http://ambermd.org/tutorials/basic/tutorial6/"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;tutorial B6&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt; from ambermd.org. Here is a workaround:&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: medium; "&gt;&lt;blockquote type="cite"&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Maximize the sirius window&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click on the gear button in the left hand pane.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: 20px; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Select the "Other" tab.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: 20px; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;In the "Application look and feel" panel, select "Native look and feel".&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: 20px; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click on "OK".&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: 20px; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Exit Sirius and restart the program.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-3507046400649610819?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/3507046400649610819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/3507046400649610819'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2010/10/amber-tutorial-b6.html' title='Amber Tutorial B6'/><author><name>David Watson</name><uri>http://www.blogger.com/profile/06222833641525087578</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_OZiA30sz5YA/TKyE3_On0oI/AAAAAAAAAAo/lTnmamncLvw/S220/L1040207.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-7838248446609641661</id><published>2010-05-15T23:58:00.000-07:00</published><updated>2011-04-24T16:51:56.094-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><category scheme='http://www.blogger.com/atom/ns#' term='Amber11'/><title type='text'>Building AmberTools 1.4 with pre-built compilers on Mac OS X 10.6 Snow Leopard</title><content type='html'>I have been using the pre-built compilers for Amber projects from time to time, but I've never settled down with any of these binary packages. The most obvious reason was that I really like to build it by myself, part of me deep inside my paranoid mind,  I was just afraid of pre-built packages.&lt;br /&gt;
&lt;br /&gt;
However when it comes to preparing documentation for the broad range of Amber users, suggesting an solution of requiring users to build compilers themselves seems to be &lt;strike&gt;ridiculous in some level&lt;/strike&gt; a hassle for users. If you want to change the status quo, go to Apple's &lt;a href="https://bugreport.apple.com"&gt;bugs report website&lt;/a&gt; and suggest them to bundle gfortran with Xcode. I can even envision Professors writing letter to Steve Jobs and having a very civilized discussion back and forth.&lt;br /&gt;
&lt;br /&gt;
Before we convince Apple to begin hiring FORTRAN people, for users with limited experience of mac and unix, I can only introduce pre-built binary packages from third-party providers. Now I am going to write down the steps I have tried to work on Amber with a pre-built compiler package. Gaurav Khanna of "HPC on Mac OS X" project has done a great job providing binary packages for Mac community for a long time. To download the package, you can visit the homepage at &lt;a href="http://hpc.sourceforge.net/"&gt;http://hpc.sf.net&lt;/a&gt; and find the download link. My experience on the gfortran-only package was not successful, it failed on linking the fftw and nab. I also failed to finish the configure script with the other "llvm-gfortran-intel-bin.tar.gz" package. So I am going to recommend you to use the gcc+gfortran package.
&lt;p&gt;
Here are the steps:
&lt;ol&gt;
&lt;li&gt;If you already tried MacPorts and fink, you should uninstall them to prevent them interfering your following procedures. (updated: no I am not bad mouthing MacPorts or fink in the previous version of the document, I was trying to be funny.)
&lt;li&gt;If you want to keep your gcc/gfortran from MacPorts, try this:&lt;code&gt;&lt;pre&gt;sudo gcc_select gcc42
sudo port deactivate gcc44&lt;/pre&gt;&lt;/code&gt; (for more information, do &lt;code&gt;man gcc_select&lt;/code&gt; and &lt;code&gt;man port&lt;/code&gt;, please.)
&lt;li&gt;If you already install the package of "gfortran-snwleo-intel-bin.tar.gz (Snow Leopard gfortran only)", you should uninstall it. To uninstall it, do &lt;code&gt;&lt;pre&gt;cd /; tar ztf ~/Downloads/gfortran-snwleo-intel-bin.tar.gz | grep -v -e '/$' -e '/\._' | xargs sudo rm -f&lt;/pre&gt;&lt;/code&gt;
&lt;li&gt;gcc+gfortran binary package "gcc-snwleo-intel-bin.tar.gz (Snow Leopard)" from the same site indeed does work, so you should download that gcc-snwleo-intel-bin.tar.gz file. To install it, do: &lt;code&gt;&lt;pre&gt;sudo tar zxvf ~/Downloads/gcc-snwleo-intel-bin.tar.gz -C /&lt;/pre&gt;&lt;/code&gt; (this will extract the files in /usr/local )
&lt;li&gt;Now it comes to be the tedious part of the work, try to make sure you are running the right compilers when you type gcc and gfortran. First type &lt;code&gt;gcc -v&lt;/code&gt; command, if your output looks like this, you are using the right C compiler:
&lt;blockquote&gt;&lt;pre&gt;[localhost:amber11/AmberTools/src] mjhsieh% gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin10/4.5.0/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20100107/configure --enable-languages=fortran --host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10 : (reconfigured) ../gcc-4.5-20100107/configure --enable-languages=fortran,c++ --host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10
Thread model: posix
gcc version 4.5.0 20100107 (experimental) (GCC)&lt;/pre&gt;&lt;/blockquote&gt;
&lt;li&gt;If your &lt;code&gt;gfortran -v&lt;/code&gt; output looks like this, you are using the right gfortran.
&lt;blockquote&gt;&lt;pre&gt;[localhost:amber11/AmberTools/src] mjhsieh% gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin10/4.5.0/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20100107/configure --enable-languages=fortran --host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10 : (reconfigured) ../gcc-4.5-20100107/configure --enable-languages=fortran,c++ --host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10
Thread model: posix
gcc version 4.5.0 20100107 (experimental) (GCC)&lt;/pre&gt;&lt;/blockquote&gt;
&lt;li&gt;If they are not what you got, please make sure you have set the correct path environment variable, it should contain "/usr/local/bin"; my path variable looks like this:
&lt;blockquote&gt;% echo $PATH&lt;br /&gt;
/opt/local/bin:/opt/local/sbin:/opt/intel/Compiler/11.1/084/bin/intel64:/usr/bin:/bin:/usr/sbin:/sbin:&lt;span style="color:red;"&gt;/usr/local/bin&lt;/span&gt;:/opt/X11/bin:/usr/X11/bin:/Users/mjhsieh/bin&lt;/blockquote&gt;
&lt;li&gt;If you still can't have the correct output, ask us in the &lt;a href="http://ambermd.org/#reflector"&gt;Amber mail reflector&lt;/a&gt;.
&lt;li&gt;start to configure:
&lt;code&gt;&lt;pre&gt;cd /usr/local/amber11
cd AmberTools/src; ./configure -macAccelerate gnu&lt;/pre&gt;&lt;/code&gt;
&lt;li&gt;If everything printed out looks okay, start building AmberTools by typing &lt;code&gt;make install&lt;/code&gt;
&lt;li&gt;Also go to the path where amber11 is at, start the building process:
&lt;code&gt;&lt;pre&gt;cd ../../src; make install&lt;/pre&gt;&lt;/code&gt;
&lt;li&gt;Now you have it, please make sure it passes the test cases in amber11/test and amber11/AmberTools/test.
&lt;li&gt;GOOD LUCK playing AMBER/AMBERTOOLS!
&lt;li&gt;This is my result:

&lt;pre&gt;Finished test suite for AmberTools at Sun May 16 02:58:11 PDT 2010.

     318 file comparisons passed
       0 file comparisons failed
       0 tests experienced errors

Finished serial test suite for Amber 11 at Sun May 16 03:53:37 PDT 2010.

     492 file comparisons passed
       0 file comparisons failed
       0 tests experienced errors
&lt;/pre&gt;
&lt;li&gt;If you are not satisfied with this binary package, do this to uninstall:
&lt;code&gt;&lt;pre&gt;cd /; tar ztf ~/Downloads/gcc-snwleo-intel-bin.tar.gz | grep -v -e '/$' -e '/\._' | xargs sudo rm -f&lt;/pre&gt;&lt;/code&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-7838248446609641661?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7838248446609641661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7838248446609641661'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2010/05/building-ambertools-14-with-pre-built.html' title='Building AmberTools 1.4 with pre-built compilers on Mac OS X 10.6 Snow Leopard'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-5503566210019364305</id><published>2010-05-06T09:35:00.000-07:00</published><updated>2010-05-07T01:25:24.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='Amber11'/><category scheme='http://www.blogger.com/atom/ns#' term='Intel'/><title type='text'>AmberTools 1.4 and Amber 11 on Snow Leopard with the Intel compilers</title><content type='html'>In this post, I describe how to compile and install Amber 11 on Snow Leopard with the Intel compilers. Some suggest that the Intel compilers should be passed over in favour of the GNU compilers for the time being; in my experience, on the whole, the two give comparable output.

This post is written as though you have installed the most recent versions of the Intel Mac compilers, which at the time of writing are 11.1.088. For earlier (or later) versions, you will need to modify your paths accordingly.

I also assume you have downloaded and installed the Intel compilers. The installation process for these is straightforward, and should in any case be documented by Intel.
&lt;ol&gt;&lt;li&gt;Set up the Intel compiler environment. Note: These commands are intended for the Bourne shell and its variants (e.g., bash). If you are using the C shell or a variant (e.g., tcsh), you will need to use the scripts with a &lt;span style="font-family:courier new;"&gt;.csh&lt;/span&gt; extension instead of those ending in &lt;span style="font-family:courier new;"&gt;.sh&lt;/span&gt;. Also, if you are using an ia32 processor instead of a 64-bit processor, the argument to the script should be modified accordingly.&lt;/li&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;. /opt/intel/Compiler/11.1/088/bin/iccvars.sh intel64&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family:courier new;"&gt;. /opt/intel/Compiler/11.1/088/bin/ifortvars.sh intel64&lt;/span&gt;&lt;/blockquote&gt;&lt;li&gt;If you wish to compile a parallel (MPI) version of Amber and/or AmberTools, download MPICH2 from &lt;a href="http://www.mcs.anl.gov/research/projects/mpich2/"&gt;here&lt;/a&gt;. &lt;span style="color:Red;"&gt;WARNING: While other MPI implementations such as Open MPI exist, some are untested, and Open MPI fails.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Untar the mpich2 installation file:
&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;tar xzvf mpich2-1.2.1p1.tar.gz&lt;/span&gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;li&gt;Configure MPICH2 for installation and build it:
&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;cd mpich2-1.2.1p1&lt;/span&gt;
&lt;span style="font-family:courier new;"&gt;./configure --prefix=your_chosen_mpich2_directory \
--enable-f77 --enable-f90 --enable-cxx \
CC=icc CXX=icpc F77=ifort F90=ifort&lt;/span&gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;li&gt;Follow the rest of the MPICH2 installation and testing instructions in the &lt;span style="font-family:courier new;"&gt;README&lt;/span&gt; file.&lt;/li&gt;
&lt;li&gt;Make sure that &lt;span style="font-family:courier new;"&gt;your_chosen_mpich2_directory/bin&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;your_chosen_mpich2_directory/lib&lt;/span&gt; are in your &lt;span style="font-family:courier new;"&gt;PATH&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;DYLD_LIBRARY_PATH&lt;/span&gt; respectively, and that they are ahead of other possible MPI installations such as the default system MPI.&lt;/li&gt;
&lt;li&gt;Follow steps 1 to 5 &lt;a href="http://amberonmac.blogspot.com/2010/04/step-by-step-ambertools-14-installation.html"&gt;here&lt;/a&gt;. Step 6 should not be necessary.
&lt;/li&gt;
&lt;li&gt;Configure Amber:
&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;./configure intel&lt;/span&gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;li&gt;Follow steps 8 to 10 &lt;a href="http://amberonmac.blogspot.com/2010/04/step-by-step-ambertools-14-installation.html"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;If you have also installed Amber 11, go to &lt;span style="font-family:courier new;"&gt;$AMBERHOME/src&lt;/span&gt; and run &lt;span style="font-family:courier new;"&gt;make&lt;/span&gt; there.&lt;/li&gt;
&lt;li&gt;Before continuing, we recommend testing the serial executables, as outlined in the AmberTools and Amber documentation.&lt;/li&gt;
&lt;li&gt;To build parallel, return to the AmberTools source directory and re-configure:
&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;./configure -mpi intel&lt;/span&gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;li&gt;Clean up the previous object files by running &lt;span style="font-family:courier new;"&gt;make clean&lt;/span&gt; in both the AmberTools and Amber directories.&lt;/li&gt;
&lt;li&gt;Make parallel executables by running &lt;span style="font-family:courier new;"&gt;make parallel&lt;/span&gt; in both the AmberTools and Amber directories.&lt;/li&gt;
&lt;li&gt;Finally, test the parallel executables, as outlined in the AmberTools and Amber documentation.&lt;/li&gt;&lt;/ol&gt;If you have any questions, please feel free to direct them to the &lt;a href="http://ambermd.org/#reflector"&gt;AMBER mailing list&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-5503566210019364305?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/5503566210019364305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/5503566210019364305'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2010/05/ambertools-14-and-amber-11-on-snow.html' title='AmberTools 1.4 and Amber 11 on Snow Leopard with the Intel compilers'/><author><name>Mr Gronk</name><uri>http://www.blogger.com/profile/08547593352989658586</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-4279479031367558337</id><published>2010-04-26T13:04:00.000-07:00</published><updated>2010-05-16T03:27:16.026-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><title type='text'>Step-by-Step AmberTools 1.4 Installation on Mac OS X 10.5/10.6 with GNU Compilers</title><content type='html'>&lt;p&gt;Here I am going to write something about the steps to install your own AmberTools 1.4 on your Mac OS X using GNU compilers. Previously we already had several blog entries about installing the compilers, so I am not going to spend too much effort on that issue. Now if you are not sure your Macintosh have the necessary compilers to build AmberTools, please read the previous posts in this blog and find some unix buddies to help. Also this tutorial is based on the assumption that you are using BASH as your default shell. For other shells, please consult your local unix guys or system administrator for equivalent commands.&lt;/p&gt;

&lt;p&gt;If you have installed MacPorts but have not yet installed the gfortran:
&lt;pre&gt;sudo port install gcc44
sudo port install gcc_select
sudo gcc_select mp-gcc44&lt;/pre&gt;

If you are using gfortran from fink, please note that you don't have gcc_select, but you can still use following steps to make sure you are using both gcc and gfortran from fink.
&lt;ol&gt;
&lt;li&gt;Of course, install gfortran with "&lt;code&gt;sudo fink install gfortran&lt;/code&gt;".
&lt;li&gt;Check which gcc is default in your environment:&lt;br /&gt;"&lt;code&gt;which gcc&lt;/code&gt;" and "&lt;code&gt;gcc -v&lt;/code&gt;" commands.
&lt;li&gt;&lt;a name="fink_tip1"&gt;&lt;/a&gt;If the result says "&lt;code&gt;/usr/bin/gcc&lt;/code&gt;", and you later encounter &lt;a href="http://archive.ambermd.org/201004/0597.html"&gt;this issue&lt;/a&gt; you probably need to change the configure script later in the directory of &lt;code&gt;$AMBERHOME/AmberTools/src/&lt;/code&gt; by replacing "&lt;code&gt;gcc&lt;/code&gt;" to "&lt;code&gt;gcc-4&lt;/code&gt;" and "&lt;code&gt;g++&lt;/code&gt;" to "&lt;code&gt;g++-4&lt;/code&gt;".
&lt;/ol&gt;&lt;/p&gt;

&lt;p&gt;Now here comes the fun part, please make sure that you already downloaded the &lt;a href="http://ambermd.org/#AmberTools"&gt;AmberTools&lt;/a&gt; (and also know where did the file you downloaded go!).
&lt;ol&gt;&lt;li&gt;We first change the current directory to /usr/local,
&lt;pre&gt;cd /usr/local&lt;/pre&gt;
&lt;li&gt;and then extract the AmberTools archive you just downloaded, presumably at ~/Downloads/.
&lt;pre&gt;sudo tar xvfj ~/Downloads/AmbeTools-1.4.tar.bz2&lt;/pre&gt;
&lt;li&gt;And then fix the permission for you can build it without using root privilege:
&lt;pre&gt;sudo chown -R $USER:$GROUP amber11&lt;/pre&gt;
&lt;li&gt;Run this command and make sure to put this command to your $HOME/.bashrc:
&lt;pre&gt;export AMBERHOME=/usr/local/amber11&lt;/pre&gt;
&lt;li&gt;Change the current directory to where the configure script is:
&lt;pre&gt;cd amber11/AmberTools/src&lt;/pre&gt;
&lt;li&gt;Now it would be a good time to modify the configure script if you are required to do that because of &lt;a href="#fink_tip1"&gt;this&lt;/a&gt; and &lt;a href="http://archive.ambermd.org/201004/0597.html"&gt;that&lt;/a&gt;. &lt;span style="color:red;"&gt;THIS IS NORMALLY NOT NECESSARY.&lt;/span&gt;
&lt;pre&gt;perl -pi -e 's/cc=gcc/cc=gcc-4/;s/g++/g++-4/g' configure&lt;/pre&gt;
&lt;li&gt;Following the manual, do the configuration. This takes about 1~3 minutes to finish.
&lt;pre&gt;./configure -macAccelerate gnu&lt;/pre&gt;
&lt;li&gt;And start to build the program:
&lt;pre&gt;make install&lt;/pre&gt; This will take a while, make yourself a cup of tea. If you see any problem or message during the building process that prevent you from finishing, please report it to the &lt;a href="http://ambermd.org/#reflector"&gt;Amber mail reflector&lt;/a&gt;.
&lt;li&gt;After that, change your current directory to the testing directory:
&lt;pre&gt;cd ../test&lt;/pre&gt;
&lt;li&gt;And start testing!
&lt;pre&gt;make test&lt;/pre&gt;
&lt;/ol&gt;&lt;/p&gt;


&lt;p&gt;After finish building the AmberTools above, you might want to build a parallel version of some commands. About the decision of whether or not making a parallel version of them, please refer to the AmbetTools manual. If you want to build parallel version of AmberTools 1.4 or even Amber11 in general I'd recommend to build an openmpi software by yourself under the AMBER directory. Here is how to build an openmpi inside AMBER.

&lt;ol&gt;&lt;li&gt;First change current directory to the AmberTools source:
&lt;pre&gt;cd $AMBERHOME/AmberTools/src&lt;/pre&gt;
&lt;li&gt;&lt;span style="color:red;"&gt;Important&lt;/span&gt;! Clean-up the left-over from previous non-parallel building work.
&lt;pre&gt;make clean&lt;/pre&gt;
&lt;li&gt;Then download the source code of openmpi from &lt;a href="http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.1.tar.bz2"&gt;here&lt;/a&gt; and extract the files for openmpi.
&lt;pre&gt;tar xvfj ~/Downloads/openmpi-1.4.1.tar.bz2&lt;/pre&gt;
&lt;li&gt;Now start to build the openmpi:
&lt;pre&gt;./configure_openmpi gnu&lt;/pre&gt;
&lt;li&gt;Here comes the tricky part, by default your Mac OS X 10.6/10.5 bundled openmpi with the developer Tools without FORTRAN support (yes, sadly mpif90/mpif77 in the /usr/bin are disabled by Apple.), so you have to make sure $AMBERHOME/bin in the PATH and also it has to be prior to /usr/bin. If you have macports installed, your $PATH in the BASH should look something similar to this:
&lt;pre&gt;bash-3.2$ echo $PATH
/usr/local/amber11/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin
bash-3.2$ &lt;/pre&gt;
&lt;li&gt;Now configure a parallel environment for building parallel commands in AmberTools:
&lt;pre&gt;env MPI_HOME=$AMBERHOME/AmberTools ./configure -mpi -macAccelerate gnu&lt;/pre&gt;
&lt;li&gt;And then build the things:
&lt;pre&gt;make parallel&lt;/pre&gt;
&lt;li&gt;Before you do some tests on parallel programs, be advised to turn off the firewall (consider this temporary), since the tests will give you a lot of pop-up prompts if you are using application based firewall rules...
&lt;li&gt;And do some tests:
&lt;pre&gt;cd ../test
env DO_PARALLEL="mpirun -np 2" make test.parallel&lt;/pre&gt;
&lt;/ol&gt;&lt;/p&gt;

Now you have it! If you still do not know what you are doing, please stop-by the &lt;a href="http://ambermd.org/#reflector"&gt;Amber mail reflector&lt;/a&gt; and ask us questions and we are more than happy to help!&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:red;"&gt;(Update: if your other compiling activities are broken by gcc_select, for example you no longer are able to build iphone app with Xcode, just do "sudo gcc_select gcc42" to reset the setting.)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-4279479031367558337?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/4279479031367558337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/4279479031367558337'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2010/04/step-by-step-ambertools-14-installation.html' title='Step-by-Step AmberTools 1.4 Installation on Mac OS X 10.5/10.6 with GNU Compilers'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-76763602871831868</id><published>2010-04-26T12:30:00.000-07:00</published><updated>2010-04-26T12:52:34.094-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Amber11'/><title type='text'>Amber11 Released</title><content type='html'>&lt;font size=+2&gt;
&lt;b&gt;[AMBER] Announcement: release of Amber11 and AmberTools 1.4&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
&lt;table width=100% cellpadding=0 cellspacing=0 border=0&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;font size=-1&gt;&lt;b&gt;
David Case
&amp;lt;email&amp;gt;
&lt;/b&gt;&lt;/font&gt;
&lt;/td&gt;
&lt;td align=right&gt;
&lt;font size=-1&gt;&lt;b&gt;
Mon, Apr 26, 2010 at 5:41 AM
&lt;/b&gt;&lt;/font&gt;
&lt;tr&gt;
&lt;td colspan=2&gt;
&lt;font size=-1&gt;
&lt;div&gt;
Reply-To:
AMBER Mailing List &amp;lt;amber@ambermd.org&amp;gt;
&lt;/div&gt;
&lt;div&gt;
To:
amber@ambermd.org, CHEMISTRY@ccl.net
&lt;/div&gt;
&lt;/font&gt;
&lt;tr&gt;
&lt;td colspan=2&gt;
&lt;table width=100% cellpadding=12 cellspacing=0 border=0&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;font size=-1&gt;&lt;br /&gt;
I am pleased to announce the release Amber 11.&lt;br /&gt;
&lt;br /&gt;
Amber is a suite of programs designed for molecular dynamics simulations of&lt;br /&gt;
biomolecules. &amp;nbsp;For full information on what is new in Amber 11, and how to&lt;br /&gt;
order it, please visit:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href="http://ambermd.org/#Amber" target="_blank"&gt;http://ambermd.org/#Amber&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I am also pleased are proud to announce the release of version 1.4 of&lt;br /&gt;
AmberTools.&lt;br /&gt;
&lt;br /&gt;
AmberTools consists of several independently developed packages that&lt;br /&gt;
work well by themselves, and with Amber itself. Key facilities allow the&lt;br /&gt;
preparation of systems for MD simulations, and analysis of trajectories.&lt;br /&gt;
The suite can also be used to carry out complete molecular mechanics&lt;br /&gt;
investigations (using NAB), employing generalized Born, Poisson-Boltzmann&lt;br /&gt;
or 3D-RISM solvent models. &amp;nbsp;AmberTools is released mainly using the GNU&lt;br /&gt;
General Public License (GPL), with some components using other open source&lt;br /&gt;
licenses.&lt;br /&gt;
&lt;br /&gt;
For more information, and to download AmberTools, please visit:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href="http://ambermd.org/#AmberTools" target="_blank"&gt;http://ambermd.org/#AmberTools&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
...dave case&lt;br /&gt;
(For the Amber development team: &lt;a href="http://ambermd.org/contributors.html" target="_blank"&gt;http://ambermd.org/&lt;wbr /&gt;contributors.html&lt;/a&gt; &amp;nbsp;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
______________________________&lt;wbr /&gt;_________________&lt;br /&gt;
AMBER mailing list&lt;br /&gt;
&lt;a href="mailto:AMBER@ambermd.org"&gt;AMBER@ambermd.org&lt;/a&gt;&lt;br /&gt;
&lt;/font&gt;
&lt;/table&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-76763602871831868?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/76763602871831868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/76763602871831868'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2010/04/amber11-released.html' title='Amber11 Released'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-3810364054859551819</id><published>2010-01-28T18:52:00.001-08:00</published><updated>2010-05-20T01:33:01.889-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><category scheme='http://www.blogger.com/atom/ns#' term='Amber10'/><title type='text'>Some tips of Amber10 installation on Mac OS X 10.6 with GNU compilers</title><content type='html'>The question was whether or not Amber10 is compatible with Mac OS X 10.6, Jason's answer from the Amber reflector mailing list is very sufficient:
&lt;blockquote&gt;Amber10 should work on Snow Leopard (as well as ambertools 1.3).However, you should make sure that you have compatible compilers (i.e. a gfortran compiler that builds 64-bit binaries, that you can get either from MacPorts or hpc.sourceforge.net).&lt;/blockquote&gt;
I just want to add some extra tips for people wondering the same questions:
&lt;ol&gt;&lt;li&gt;If you are using MacPorts, do what I did: install gcc44 and gcc_select and select mp-gcc44
&lt;li&gt;do whatever manual told you to do, but right after the configure scripts (e.g. ./configure_amber or ./configure_at), get rid of every '-m32' from the config_amber.h and config.h files.
&lt;li&gt;After that you are good to go.&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-3810364054859551819?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/3810364054859551819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/3810364054859551819'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2010/01/some-tips-of-amber10-installation-on.html' title='Some tips of Amber10 installation on Mac OS X 10.6 with GNU compilers'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-3474058460057323389</id><published>2009-12-23T02:00:00.000-08:00</published><updated>2010-05-16T01:20:56.387-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><title type='text'>Step-by-step procedure of building MacPorts gfortran and AmberTools 1.3 in Mac OS X 10.6</title><content type='html'>This is what I would do if I got a brand new Mac OS X machine using gfortran to build AmberTools 1.3 on it.
&lt;p&gt;&lt;ol&gt;
&lt;li&gt; Find the Mac OS X installation CDs/DVD, start to install Xcode Developer Tools. &lt;br /&gt;If you left it at home, try to download it at the &lt;a href="http://connect.apple.com/"&gt;Apple Developer Connection&lt;/a&gt; site. Make sure you have installed "Unix Development" (default)
&lt;li&gt; Download the &lt;a href="http://distfiles.macports.org/MacPorts/MacPorts-1.8.1-10.6-SnowLeopard.dmg"&gt;MacPorts Disk Image&lt;/a&gt; from the MacPorts' website.
&lt;li&gt; Mount the disk image and install the pkg, running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.
&lt;li&gt; Open a new shell window and do later stuff in this shell, this is to make sure that changes to the environment variables have taken effect.
&lt;li&gt; check if your PATH environment variable really contains &lt;code&gt;/opt/local/bin&lt;/code&gt; and &lt;code&gt;/opt/local/sbin&lt;/code&gt; by running "&lt;code&gt;echo $PATH&lt;/code&gt;"
&lt;li&gt; check upgrades to MacPorts: "&lt;code&gt;sudo port -v selfupdate&lt;/code&gt;"
&lt;li&gt; run "&lt;code&gt;sudo port install gcc44&lt;/code&gt;"
&lt;li&gt;&lt;strike&gt; run "&lt;code&gt;mkdir ${HOME}/bin&lt;/code&gt;"&lt;/strike&gt;(not necessary)
&lt;li&gt; append this line to the end your ~/.bashrc (If you are using CSH/TCSH, you must be very savvy, so you don't need no documentation...
&lt;code&gt;&lt;pre&gt;export PATH=${HOME}/bin:$PATH&lt;/pre&gt;&lt;/code&gt;
&lt;li&gt; run "&lt;code&gt;export PATH=${HOME}/bin:$PATH&lt;/code&gt;"
&lt;li&gt; &lt;strike&gt;run "&lt;code&gt;ln -s /opt/local/bin/gfortran-mp-4.4 ~/bin/gfortran&lt;/code&gt;"&lt;/strike&gt;&lt;br /&gt;(Original steps were stupid, try following steps:) run "&lt;code&gt;sudo port install gcc_select; sudo gcc_select mp-gcc44&lt;/code&gt;"
&lt;li&gt; Download AmberTools from &lt;a href="http://ambermd.org/#AmberTools"&gt;http://ambermd.org/#AmberTools&lt;/a&gt; (Safari will place it to ~/Downloads)
&lt;li&gt; run "&lt;code&gt;tar jxvf ~/Downloads/AmberTools-1.3.tar.bz2 -C ~/&lt;/code&gt;", this will extract an amber11 folder in your home directory.
&lt;li&gt; Now it would be a good time to append this line to your ~/.bashrc
&lt;code&gt;&lt;pre&gt;export AMBERHOME=${HOME}/amber11&lt;/pre&gt;&lt;/code&gt;
&lt;li&gt; run "&lt;code&gt;export AMBERHOME=${HOME}/amber11&lt;/code&gt;" as well
&lt;li&gt; run "&lt;code&gt;cd ~/amber11/src; ./configure -macAccelerate gnu&lt;/code&gt;"
&lt;li&gt; run "&lt;code&gt;make -f Makefile_at&lt;/code&gt;" and wait
&lt;li&gt; After "make" stops, check to see if there is any error. If your building process indeed stopped prematurely, report it to the Amber mailing list. Please mention your OS version and compiler you used.
&lt;li&gt; run "&lt;code&gt;cd ~/amber11/test; make -f Makefile_at&lt;/code&gt;" to check the testing cases result. Please make sure your environment variable $AMBERHOME is correct before you run the test.
&lt;/ol&gt;

&lt;h3&gt;After thought&lt;/h3&gt;
If you want to use macports without problem after above operation, make sure to "sudo gcc_select" back to gcc42 or llvm-gcc42, or you might encounter some incompatibility with building some certain ports.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-3474058460057323389?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/3474058460057323389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/3474058460057323389'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2009/12/step-by-step-procedure-of-macports.html' title='Step-by-step procedure of building MacPorts gfortran and AmberTools 1.3 in Mac OS X 10.6'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-2730569534900987598</id><published>2009-12-07T07:22:00.000-08:00</published><updated>2009-12-23T10:11:59.672-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>Installing g95 or gfortran with MacPorts</title><content type='html'>(Original blog entry posted on 7/27/09)&lt;p&gt;Besides a C compiler, AMBER installation requires a FORTRAN 90 compiler, this has been the case since AMBER 8. FORTRAN 90 compilers are not provided by Apple in developer environment therefore FORTRAN developers need to acquire a third party compiler by themselves. AbSoft PRO Fortran, NAG Fortran 90, IBM XL Fortran 9 and Intel Fortran are some fine compilers that require some funding. There are two popular open source licensed FORTRAN 90 compilers, g95 and gfortran. These two compilers originates from the same group of people but the diverged due to the difference of project managing styles. g95 is more conservatively and independently developed while gfortran integrates itself to the mothership -- gcc source tree. G95 has some advanced feature like coarrays, but gfortran does have something g95 doesn't have: OpenMP.&lt;/p&gt;

&lt;p&gt;There are many ways to install these open source FORTRAN compilers on Mac OS X, you could build the compilers from the source or just install the binary packages, or from the way between: using porting system to build them automatically.&lt;/p&gt;

&lt;p&gt;Before I write anything about the getting the compilers for your Mac OS X, you should at least have installed:
&lt;ol&gt;
            &lt;li&gt;Apple's &lt;a href="http://developer.apple.com/tools/xcode/"&gt;Xcode&lt;/a&gt; Developer Tools (at least version 3.2 for 
            Snow Leaopard, version 3.1 for Leopard, or 2.4 for Tiger, ), found at the &lt;a href="http://connect.apple.com/"&gt;Apple 
            Developer Connection&lt;/a&gt; site or on your Mac OS X installation CDs/DVD.&lt;/li&gt;
            &lt;li&gt;(You need this for Amber.) The X11 windowing environment (A.K.A. &amp;#8220;X11 User&amp;#8221;) and its related SDK package (&amp;#8220;X11SDK&amp;#8221;)
            for ports that depend on the functionality they provide to compile and run.
                &lt;ul&gt;
                    &lt;li&gt;the &amp;#8220;X11 User&amp;#8221; package is an optional installation on your system CDs/DVD for Panther and
                    Tiger, enabled through the &amp;#8220;Customize&amp;#8221; button of the installer, whereas it is included by default
                    on Leopard.&lt;/li&gt;
                    &lt;li&gt;the &amp;#8220;X11 SDK&amp;#8221; package from the Xcode installer will be automatically selected if &amp;#8220;X11
                    User&amp;#8221; is already installed, so be sure to install that first.&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;

&lt;p&gt;I personally recommend against porting things from the source trees. If you really do have that kind of skills and free time, you can skip this little note of mine, go ahead and do it already!&lt;/p&gt;

&lt;p&gt;For the fans of binary packages, you should try the links from &lt;a href="http://hpc.sourceforge.net/"&gt;hpc.sourceforge.net/&lt;/a&gt; or from &lt;a href="http://macresearch.org/"&gt;MacResearch group&lt;/a&gt;, although I normally don't take this path, this is due to my inner geekiness that preventing me from installing 3rd party packages. Nevertheless, I strongly recommend this way to install your tools if you want to get over it fast.&lt;/p&gt;

&lt;p&gt;For utilizing the porting system, you got the options of &lt;a href="http://www.finkproject.org/"&gt;fink&lt;/a&gt; and &lt;a href="http://www.macports.org/"&gt;macports&lt;/a&gt;. If you are a fan of Ubuntu or Debian Linux, you should try fink first. For me, I chose macports just because I got some friends in the founding team. &lt;/p&gt;

&lt;p&gt;Here is how I did it:
&lt;ol&gt;
&lt;li&gt;Download the dmg file from &lt;a href="http://www.macports.org/install.php"&gt;http://www.macports.org/install.php&lt;/a&gt;, open and mount the dmg and launch the installer by double clicking the pkg file. This requires administrator's permission.&lt;/li&gt;
&lt;li&gt;Read the port(1) manual page and http://guide.macports.org for help, http://www.macports.org/contact.php if you need to get in touch with The MacPorts Project.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;$ sudo port install g95&lt;/code&gt; g95 in latest macports repository seems to be broken in Tiger&lt;/li&gt;
&lt;li&gt;&lt;code&gt;$ sudo port install gcc45 +gfortran&lt;/code&gt; (gcc45 is an experimental version, please use gcc44 for stability.) On Mac OS X 10.4 Tiger, the only choices are gcc43 and gcc42.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Viola!&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;

&lt;H2&gt;See the next note for &lt;a href="http://amberonmac.blogspot.com/2009/12/step-by-step-procedure-of-macports.html" title="Step-by-step procedure of MacPorts gfortran and AmberTools 1.3 in Mac OS X 10.6"&gt;more elaborated steps&lt;/a&gt;.&lt;/H2&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-2730569534900987598?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/2730569534900987598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/2730569534900987598'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2009/07/installing-g95-or-gfortran-with.html' title='Installing g95 or gfortran with MacPorts'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-6493266306578039846</id><published>2009-10-10T14:02:00.000-07:00</published><updated>2009-10-13T01:24:35.387-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visualization'/><title type='text'>VMD 1.8.7 CUDA on Macbook Pro's Geforce 9400M and Snow Leopard</title><content type='html'>For some reason, VMD 1.8.7 didn't pick up my 9400M video card.&lt;blockquote&gt;With this message: &lt;code&gt;No CUDA accelerator devices available.&lt;/code&gt;&lt;/blockquote&gt;I am not sure if it's something to do with Mac OS X 10.6 or else. I decided to take a look at &lt;a href="http://www.nvidia.com/object/cuda_get.html"&gt;CUDA's download page&lt;/a&gt; and got a hint that old run time library in VMD 1.8.7 might not work with 9400M+Mac OS 10.6. I started to install CUDA Driver and Toolkit but left the SDK alone. I happen to remember there were something CUDA in VMD's content, for example:
&lt;blockquote&gt;&lt;code&gt;/Applications/VMD\ 1.8.7.app/Contents/vmd&lt;/code&gt;&lt;/blockquote&gt;
So what I did was to remove the CUDA library files that came with VMD 1.8.7 and made symbolic links to the new runtimes I just installed.
&lt;pre&gt;$ cd /Applications/VMD\ 1.8.7.app/Contents/vmd
$ rm libcuda.dylib libcudart.dylib libtlshook.dylib
$ ln -s /usr/local/cuda/lib/libcuda.dylib
$ ln -s /usr/local/cuda/lib/libcudart.dylib
$ ln -s /usr/local/cuda/lib/libtlshook.dylib&lt;/pre&gt;
&lt;a href="http://www.flickr.com/photos/mjhsieh/3998634409/" title="VMD CUDA by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2630/3998634409_b244685c5a.jpg" width="500" height="343" alt="VMD CUDA" /&gt;&lt;/a&gt;
&lt;br /&gt;Yay...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-6493266306578039846?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/6493266306578039846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/6493266306578039846'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2009/10/vmd-187-cuda-on-macbook-pros-geforce.html' title='VMD 1.8.7 CUDA on Macbook Pro&apos;s Geforce 9400M and Snow Leopard'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm3.static.flickr.com/2630/3998634409_b244685c5a_t.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-160988846489995454</id><published>2009-10-06T04:27:00.000-07:00</published><updated>2010-05-16T01:21:35.850-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><category scheme='http://www.blogger.com/atom/ns#' term='Amber10'/><title type='text'>gcc 4.4 is not happy with sleap's boost source</title><content type='html'>If by any chance you are using gcc 4.4 to compile sleap under gleap directory, you might encounter problems like this error:&lt;pre&gt;../../ext/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
../../ext/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
....&lt;/pre&gt;

This is due to some behaviors changes after gcc 4.4 that interpret C preprocessing macro &lt;a href="https://svn.boost.org/trac/boost/ticket/2069"&gt;differently&lt;/a&gt;. Here is &lt;a href="http://mjhsieh.googlecode.com/svn/trunk/newBSD/Amber.on.Mac/amber10_gleap.patch"&gt;a patch&lt;/a&gt; to workaround. &lt;iframe style="width:99%;" src="http://mjhsieh.googlecode.com/svn/trunk/newBSD/Amber.on.Mac/amber10_gleap.patch"&gt;&lt;/iframe&gt; We might need to use newer boost for or system's boost lib.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-160988846489995454?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/160988846489995454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/160988846489995454'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2009/10/gcc-44-is-not-happy-sleaps-boost-source.html' title='gcc 4.4 is not happy with sleap&apos;s boost source'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-7631090382374566254</id><published>2009-10-04T03:17:00.000-07:00</published><updated>2009-11-07T10:54:58.015-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visualization'/><title type='text'>Using mddisplay with AMBER under Mac OS X</title><content type='html'>&lt;a href="http://www.structbio.vanderbilt.edu/~cmoth/mddisplay/index.html"&gt;Mddisplay&lt;/a&gt; is a neat tool by Chris Moth for molecular dynamics trajectory analysis. You can display the trajectory with an OpenGL window.
&lt;blockquote CITE="http://archive.ambermd.org/200310/0183.html"&gt;... a really nice program. I find the hardware stereo option very helpful, and the ptraj-like syntax very convenient... -- Dr. Meroueh&lt;/blockquote&gt;
&lt;blockquote cite="http://www.cgl.ucsf.edu/pipermail/chimera-users/2007-November/002003.html"&gt;...a nice OpenGL based MD-viewer... -- Dr. Dawson&lt;/blockquote&gt;
&lt;br /&gt;
It's not difficult to build the program from the source on Mac OS X, I have tested it on Mac OS X 10.4, 10.5 and 10.6. However, I have submitted a ticket to create a new &lt;a href="http://macports.org"&gt;Macports&lt;/a&gt; port so it would be even easier to organize the software. (Check the website to know how to work with macports.)&lt;br /&gt;
&lt;br /&gt;
If my porting setting got committed into Macports (Update: it got checked in to Macports collection), you should be able to install mddisplay under command line interface like this:&lt;blockquote&gt;&lt;code&gt;sudo port install mddisplay&lt;/code&gt;&lt;/blockquote&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/3974164734/" title="Screen shot 2009-10-02 at 1.32.16 AM by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2447/3974164734_458f622a35.jpg" width="500" height="322" alt="Screen shot 2009-10-02 at 1.32.16 AM" /&gt;&lt;/a&gt;&lt;br /&gt;Two programs would be installed, "preproc" and "mddisplay".&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;PLEASE BE SURE TO CHECK  &lt;a href="http://www.structbio.vanderbilt.edu/~cmoth/mddisplay/MDDisplay.pdf"&gt;THE MANUAL&lt;/a&gt;!!&lt;/h2&gt;
&lt;br /&gt;
In order to display simulation frames in a time evolving way (movie), you can try to load AMBER topology and trajectories and convert it into mddisplay's movie data: &lt;blockquote&gt;&lt;code&gt;preproc -p 1enh.top -c 1enh.trj -n movie -f 100&lt;/code&gt; (This generates three files: movie.cor, movie.bnd and movie.attr.)&lt;br /&gt;Tips: &lt;ol&gt;&lt;li&gt;for trajectory with more than 100 frames, you might need to specify how many frame you need by  "-f 888" if you need to load 888 frames.&lt;li&gt;use "-f 888%8" if you want to load 111 frame for every 8 frames of this 888 frame trajectory&lt;li&gt;multiple "-c" arguments are possible.&lt;li&gt;and .. you can use the name other than movie, it's okay.&lt;/ol&gt;
&lt;/blockquote&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/3973474757/" title="Screen shot 2009-10-02 at 2.32.05 AM by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3555/3973474757_9d8fdea76c.jpg" width="500" height="326" alt="Screen shot 2009-10-02 at 2.32.05 AM" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To display the movie data, just do:&lt;blockquote&gt;&lt;code&gt;mddisplay -n movie&lt;/code&gt; and answer the questions. Here I used "b" for automatic coloring and ":" to assign every atom with this coloring style. I also used return key to tell mddisplay that's all my coloring style. Also the time frame and starting time were specified as default.&lt;/blockquote&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/3973462119/" title="Screen shot 2009-10-02 at 1.55.43 AM by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3436/3973462119_ef103314d1_o.png" width="500" height="594" alt="Screen shot 2009-10-02 at 1.55.43 AM" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This will create a OpenGL window for you to control. Type "?" or click the help box for the controlling setting. You can blackout the side-chain atoms, filtering out the high frequency motions, or displaying averaged structure. Please refer to the &lt;a href="http://www.structbio.vanderbilt.edu/~cmoth/mddisplay/MDDisplay.pdf"&gt;manual&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/3973462161/" title="Screen shot 2009-10-02 at 2.14.53 AM by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2644/3973462161_f77c6a1c69.jpg" width="500" height="325" alt="Screen shot 2009-10-02 at 2.14.53 AM" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The help window looks like this:&lt;br /&gt;
&lt;a href="http://www.flickr.com/photos/mjhsieh/3974229688/" title="Screen shot 2009-10-02 at 2.22.34 AM by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3452/3974229688_d61d8cf03c_o.png" width="680" height="502" alt="Screen shot 2009-10-02 at 2.22.34 AM" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-7631090382374566254?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7631090382374566254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7631090382374566254'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2009/10/using-mddisplay-with-amber-under-mac-os.html' title='Using mddisplay with AMBER under Mac OS X'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm3.static.flickr.com/2447/3974164734_458f622a35_t.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-771918438406583523</id><published>2009-08-04T13:53:00.000-07:00</published><updated>2010-01-28T17:50:10.510-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='Amber10'/><title type='text'>[FYI] my config_amber.h file</title><content type='html'>Check this out if you like to install Amber10 with bundled lammpi source, g95, and Intel Math Kernel Library installed on your Mac OS X. &lt;a href="http://mjhsieh.googlecode.com/svn/trunk/newBSD/Amber.on.Mac/config_amber.h_g95_MKL_LAM"&gt;download&lt;/a&gt;.&lt;br /&gt;
&lt;iframe style="width:99%;" src="http://mjhsieh.googlecode.com/svn/trunk/newBSD/Amber.on.Mac/config_amber.h_g95_MKL_LAM"&gt;&lt;/iframe&gt;&lt;br /&gt;
For non-parallel configureation: &lt;a href="http://mjhsieh.googlecode.com/svn/trunk/newBSD/Amber.on.Mac/config_amber.h_g95_MKL_NOPAR"&gt;download it from here&lt;/a&gt;&lt;br /&gt;
&lt;iframe style="width:99%;" src="http://mjhsieh.googlecode.com/svn/trunk/newBSD/Amber.on.Mac/config_amber.h_g95_MKL_NOPAR"&gt;&lt;/iframe&gt;

This was tested on Mac OS X 10.4.9 with g95 0.91_1 and Intel MKL 10.0.4.022.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-771918438406583523?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/771918438406583523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/771918438406583523'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2009/08/fyi-my-configamberh-file.html' title='[FYI] my config_amber.h file'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-1211807381034515667</id><published>2008-04-09T10:10:00.000-07:00</published><updated>2010-05-16T01:19:35.384-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AmberTools'/><title type='text'>AmberTools 1.0 is now available!</title><content type='html'>(Originally posted on 4/2/08, updated)&lt;br /&gt;
&lt;a href="http://www.flickr.com/photos/mjhsieh/2383272349/" title="GPLed AmberTools 1.0 is now available! by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2322/2383272349_63f0a1178a_o.png" width="386" height="370" alt="GPLed AmberTools 1.0 is now available!" /&gt;&lt;/a&gt;&lt;br /&gt;And AmberTools is now under GPL2! &lt;a href="http://ambermd.org/#AmberTools"&gt;Go ahead and check it out&lt;/a&gt;!
&lt;ol&gt;&lt;b&gt;Known macintosh-related issues on version 1.0&lt;/b&gt;:
&lt;li&gt;sleap crashs when launched (fixed in the current source tree, please wait for software update.)
&lt;li&gt;antechamber crashs during several tests.&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-1211807381034515667?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/1211807381034515667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/1211807381034515667'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2008/04/ambertools-10-is-now-available.html' title='AmberTools 1.0 is now available!'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-452716970422446631</id><published>2008-04-02T10:26:00.000-07:00</published><updated>2008-04-02T10:31:30.030-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Coming up next: hardware accelerating PMEMD</title><content type='html'>&lt;a href="http://www.flickr.com/photos/mjhsieh/2382532917/" title="PMEMD with -framework Accelerate (Mac OS X) by Pooch the dog, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2276/2382532917_ec637d5b45.jpg" width="500" height="436" alt="PMEMD with -framework Accelerate (Mac OS X)" /&gt;&lt;/a&gt;&lt;br /&gt;Just to show-off. Only vvexp, vvlog, vvrsqrt and vvrec are used in this test.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-452716970422446631?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/452716970422446631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/452716970422446631'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2008/04/coming-up-next-hardware-accelerating.html' title='Coming up next: hardware accelerating PMEMD'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm3.static.flickr.com/2276/2382532917_ec637d5b45_t.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114466438797886714</id><published>2008-03-26T12:16:00.000-07:00</published><updated>2008-03-26T12:27:16.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>AMBER 9 PMEMD on the Mac</title><content type='html'>Okay, this time I am going to do a step-by-step document of compiling AMBER 9 PMEMD on the Mac. But I still think compiling this kind of thing requires some consultant fees as a reward for your lovely technical guys around.
&lt;p&gt;If you use intel ifort on Mac OS X, please refer the documentation of linux to use linux p4 option.

&lt;p&gt;For g95/gfortran (intel), save this following piece of text into "pmemd/config_data/macosx_intel.g95", and run "./configure macosx_intel g95 nopar" to generate required config.h file. If you are using ppc CPU, just get rid of -msse3 and use the file of macosx_ppc.g95 and change the argument respectively. 
&lt;pre style="background-color:#c0ffc0;"&gt;DIRFRC_DEFINES = -DDIRFRC_COMTRANS -DDIRFRC_EFS
CPP = /usr/bin/cpp
CPPFLAGS = -traditional -P
F90_DEFINES = -DFFTLOADBAL_2PROC

F90 = g95
MODULE_SUFFIX = mod
F90FLAGS = -c
F90_OPT_DBG = -g -ftrace=full
F90_OPT_LO =  -O0
F90_OPT_MED = -O2
F90_OPT_HI =  -O3 -msse3
F90_OPT_DFLT =  $(F90_OPT_HI)

CC = gcc
CFLAGS = -DDBL_C_UNDERSCORE

LOAD = g95
LOADFLAGS =
LOADLIBS =&lt;/pre&gt;

&lt;p&gt;macosx_pcc.xlf90 file for Mac OS X 10.4 (tiger) ppc using IBM xlf90
&lt;pre style="background-color:#c0ffc0;"&gt;setenv PREPROCFLAGS "-DDIRFRC_BIGCACHE_OPT -DNO_C_UNDERSCORE"

setenv CPP /opt/ibmcmp/xlf/8.1/exe/cpp

setenv OPT_LO  "xlf90 -qsuffix=f=f90 -qdpc -qmaxmem=-1 -qarch=auto -c"
setenv OPT_MED "xlf90 -qsuffix=f=f90 -qdpc -qmaxmem=-1 -O2 -qarch=auto -c"
setenv OPT_HI  "xlf90 -qsuffix=f=f90 -qdpc -qstrict -O3 -qarch=auto -c"

setenv LOAD "xlf90 -qdpc -qarch=auto"
setenv LOADLIB&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114466438797886714?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466438797886714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466438797886714'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/04/amber-9-pmemd-on-mac.html' title='AMBER 9 PMEMD on the Mac'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-4792036678478773112</id><published>2007-12-05T23:23:00.000-08:00</published><updated>2007-12-08T19:43:42.148-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>g95 works on leopard now</title><content type='html'>Ever since the release of Mac OS X 10.5 (leopard), g95 had been broken on Macintosh for a while, part of the reasons are some incompatibility issues of cctools. Although the MacPorts version is still broken, but I think Takeshi (the port maintainer) has already submitted the required patches so it's just a matter of time. If you want to skip MacPorts compiling and just want to install the binary built, it would be a good time to do it now.&lt;br /&gt;
Last night I checked the 2007-11-29 version of g95 and binary package started to work.&lt;br /&gt;
Get the &lt;a href="http://ftp.g95.org/" title="G95 Binaries (Current Snapshot)"&gt;binary from the g95 project&lt;/a&gt; now.
&lt;h4&gt;Bonus:&lt;/h4&gt;Recent version of g95 does having some annoying warning like this:
&lt;blockquote&gt;&lt;code&gt;mjhsieh% /opt/g95-install/bin/i386-apple-darwin8.11.1-g95 hello.f90 -o f90hello.exe&lt;br /&gt;
/var/folders/vQ/vQ6BYbLsHSGVwgPZR0sF6++++TI/-Tmp-//cc1UyeY8.s:59:indirect jmp without `*'&lt;br /&gt;
/var/folders/vQ/vQ6BYbLsHSGVwgPZR0sF6++++TI/-Tmp-//cc1UyeY8.s:78:indirect jmp without `*'&lt;br /&gt;
/var/folders/vQ/vQ6BYbLsHSGVwgPZR0sF6++++TI/-Tmp-//cc1UyeY8.s:97:indirect jmp without `*'&lt;br /&gt;
/var/folders/vQ/vQ6BYbLsHSGVwgPZR0sF6++++TI/-Tmp-//cc1UyeY8.s:112:indirect jmp without `*'&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
You can use this script to get rid of the warning:
&lt;pre&gt;#!/bin/sh
myg95="/opt/g95-install/bin/i386-apple-darwin*g95"
exec 3&gt;&amp;1
$myg95 $* 2&gt;&amp;1 &gt;&amp;3 | grep -v "indirect jmp without " 1&gt;&amp;2
exec 3&gt;&amp;-&lt;/pre&gt;
Save it as g95 in your path, make it executable and then you can run g95 without this kind of warnings.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-4792036678478773112?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/4792036678478773112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/4792036678478773112'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/12/g95-works-on-intel-leopard-now.html' title='g95 works on leopard now'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-2122551291262937069</id><published>2007-10-23T02:49:00.000-07:00</published><updated>2007-10-23T03:24:47.884-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>[amber9] rdc test error with XL Fortran</title><content type='html'>Yes, I am late reading the AMBER reflector again. This time Dr. Langsetmo brought up this issue in May 2007:
&lt;blockquote&gt;everything went well, and in the testing most things passed, till a failure at:
&lt;pre&gt;cd rdc; ./Run.dip
STOP 1
  ./Run.dip:  Program error
make: *** [test.sander.BASIC] Error 1&lt;/pre&gt;
if look at rdc/gcg.dip.o i find at the end of the file:
&lt;pre&gt;Alignment info will be read from file: RST.dip
Here are comments from the alignment input file:
namelist reports error reading &amp;align&lt;/pre&gt;
i do have the environment variable:
&lt;pre&gt;XLFRTEOPTS=namelist=old:xrf_messages=no&lt;/pre&gt;
so i don't understand the error.  any help would be appreciated.&lt;/blockquote&gt;
My PASSED rdc test on absoft Pro fortran compiled sander shows that the problem is on XL Fortran. After several small scale searches, I found that it can be avoid by getting rid of the old namelist compatible flag from the XLFRTEOPTS options. Normally the environment XLFRTEOPTS was set to "namelist=old:xrf_messages=no", I used "xrf_messages=no" for this test:
&lt;pre style="background:#E0FFE0;"&gt;% env XLFRTEOPTS="xrf_messages=no" ./Run.dip
STOP 0
diffing gcg.dip.o.save with gcg.dip.o
PASSED
==============================================================&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-2122551291262937069?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/2122551291262937069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/2122551291262937069'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/10/amber9-rdc-test-error-with-xl-fortran.html' title='[amber9] rdc test error with XL Fortran'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-8473126124668139168</id><published>2007-10-22T14:47:00.000-07:00</published><updated>2007-10-22T14:51:36.355-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>Old News: Discontinued XL Fortran and XL C/C++ on Macintosh</title><content type='html'>&lt;p&gt;&lt;a href="http://www.ibm.com/common/ssi/rep_ca/2/897/ENUS905-182/ENUS905-182.PDF"&gt;The Announcement from IBM&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Effective April 30, 2007, IBM is discontinuing program services for XL C/C++ Advanced Edition for Mac OS X V6.0 (5724-G12) and XL Fortran Advanced Edition for Mac OS X V8.1 (5724-G13).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-8473126124668139168?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8473126124668139168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8473126124668139168'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/10/old-news-discontinued-xl-fortran-and-xl.html' title='Old News: Discontinued XL Fortran and XL C/C++ on Macintosh'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-8112043462780998216</id><published>2007-10-21T16:56:00.000-07:00</published><updated>2007-10-23T02:43:00.093-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='amber7'/><title type='text'>[amber7] make: *** [test.sander] Error 1</title><content type='html'>(I am sorry that I totally forgot this website project for quite a while, I am going to begin to review the problem from the AMBER reflector, if you found it still doesn't help, drop a note in the AMBER reflector or just comment in the guestbook for this blog.)&lt;br /&gt;
XLF/XLC on the Mac OS X is a little bit different, the exiting code might be different and the return value from the program might be mistaken as an error. From this 2004 post by Dr. Langsetmo in the Amber reflector:
&lt;blockquote&gt;i get the following error:
&lt;pre&gt;cd dmp; ./Run.dmp
  Program error
make: *** [test.sander] Error 1&lt;/pre&gt;
however, if i go to the dmp directory and give the command "../dacdif
mdout.dmp.save mdout"
i get the answer:
&lt;pre&gt;PASSED&lt;/pre&gt;
&lt;/blockquote&gt;
In my testing case, once Machines/Machine.rs6000 is taken as the MACHINE file, this problem is gone.&lt;pre style="background:#E0FFE0;"&gt;[test/]% env TESTsander=~/amber7/src/sander/sander Make test.sander
cd dmp; ./Run.dmp
STOP 0
diffing mdout.dmp.save with mdout
PASSED
==============================================================&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-8112043462780998216?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8112043462780998216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8112043462780998216'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/10/amber7-make-testsander-error-1.html' title='[amber7] make: *** [test.sander] Error 1'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-8705377644449966211</id><published>2007-10-16T00:46:00.001-07:00</published><updated>2007-10-24T01:13:12.290-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER8'/><title type='text'>not a Mach-O file</title><content type='html'>From 2007 archive of the AMBER mail reflector:
&lt;blockquote&gt;&lt;pre&gt;Starting installation of Amber9 (serial) at Wed Oct 17 18:30:45 PDT 2007.
cd lib; make install
g95    -o new2oldparm new2oldparm.o nxtsec.o
ld: new2oldparm.o bad magic number (not a Mach-O file)
ld: nxtsec.o bad magic number (not a Mach-O file)
make[1]: *** [new2oldparm] Error 1&lt;/pre&gt;&lt;/blockquote&gt;
or in 2006
&lt;blockquote&gt;&lt;pre&gt;Starting installation of Amber8 (serial) at Mon Mar 27 14:42:01 EST 2006.
mkdir ../exe
mkdir: ../exe: File exists
make: [serial] Error 1 (ignored)
cd lib; make install
xlf90 -qextname=ddot:fdate:flush:lsame:dscal:dnrm2:idamax:drot:dswap:dspmv:daxpy:\
dspr2:dgemm:dcopy:dgemv:dtrmv:dtrmm:dger:lsame:dspev:dgeev:dspevd:dsyev:dppsv:\
dspsv:dlamch:dsteqr:dgeqr2:dorm2r:dlacpy:dlarnv:dlascl:dlaset:dlartg:dlanst:dlaev2:dlapy2:\
dlasr     -o new2oldparm new2oldparm.o nxtsec.o
/usr/bin/ld: new2oldparm.o bad magic number (not a Mach-O file)
/usr/bin/ld: nxtsec.o bad magic number (not a Mach-O file)
make[1]: *** [new2oldparm] Error 1
make: *** [serial] Error 2&lt;/pre&gt;&lt;/blockquote&gt;
This error is more likely due to the existing old *.o files from other computer. Please always do a &lt;pre style="color:green;"&gt;make clean&lt;/pre&gt; before you start to compile.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-8705377644449966211?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8705377644449966211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/8705377644449966211'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/10/not-mach-o-file.html' title='not a Mach-O file'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-7292389892149340473</id><published>2007-03-21T19:30:00.000-07:00</published><updated>2007-10-23T03:40:26.333-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Problem PMEMD with MPI</title><content type='html'>A friend of mine asked me about how come his PMEMD compiled with MPI doesnot contain suffix of .mpi that kind of thing. Actually if anyone check the Makefile of PMEMD, he/she will know that there is no such default filename suffix.
&lt;pre style="color:green;"&gt;pmemd: $(NETCDF_MOD) $(OBJS)
        $(LOAD) $(LOADFLAGS) -o $@ $(OBJS) $(FFT_LIBS) \
        $(NETCDF_LIBS) $(MATH_LIBS) $(MPI_LIBS) $(LOADLIBS)&lt;/pre&gt;
Where $@ means the name of this makefile rule, which is "pmemd".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-7292389892149340473?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7292389892149340473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7292389892149340473'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2007/03/problem-pmemd-with-mpi.html' title='Problem PMEMD with MPI'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114466443034114925</id><published>2006-12-15T16:28:00.000-08:00</published><updated>2007-10-22T15:36:30.122-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Getting Compilers for AMBER 9</title><content type='html'>&lt;p&gt;Related Question:&lt;ol&gt;&lt;li&gt;(Dec 7, 2006) Mr. Heil asked about Installing Amber 9 on Mac Pro in the AMBER mail reflector.
&lt;li&gt;&lt;/ol&gt;&lt;/p&gt;

&lt;p&gt;In order to install AMBER 9 on Mac OS X operating system, you need to compile the program by yourselves. Therefore a working FORTRAN 90 compiler and a working C compiler are required. Macintosh machines nowadays come with a developer package in the DVD of Mac OS X. You can get a free and working C compiler from the disc.&lt;/p&gt;


&lt;p&gt;For FORTRAN 90 compiler, you can get free (as in free beer / freedom) &lt;a href="http://g95.sourceforge.net/"&gt;g95&lt;/a&gt; executables package from the &lt;a href="http://ftp.g95.org/"&gt;ftp site of g95&lt;/a&gt;. Remember you might need the cctools provided at the same place if you are using Mac OS X 10.3.&lt;/p&gt;

&lt;p&gt;And for gnu fortran (also free as in free beer / freedom), you probably need to compile the stuff by yourself with &lt;a href="http://darwinports.opendarwin.org/"&gt;darwinports&lt;/a&gt; or &lt;a href="http://fink.sourceforge.net/"&gt;fink&lt;/a&gt; to get newer version. Of course, it's always easier just getting the pre-built binaries from &lt;a href="http://hpc.sourceforge.net/"&gt;here&lt;/a&gt; despite I prefer doing it by myself. I personally haven't checked the current version of gfortran and therefore you are on your own to check if it's working with AMBER 9.&lt;/p&gt;

&lt;p&gt;For IBM XL compilers, both C++ and FORTRAN compilers are available for reasonable educational price (for a computing lab) from &lt;a href="http://www.absoft.com/Products/Compilers/Fortran/Macintosh/XLF/xlf.html"&gt;ABSoft fortran store&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Also check out &lt;a href="http://www.intel.com/cd/software/products/asmo-na/eng/compilers/fmac/index.htm"&gt;the intel compilers&lt;/a&gt; if you have Intel CPU based Macintosh like Mac Pro or new iMac. As a matter of fact, I highly recommend this compiler!&lt;/p&gt;

(updated: added a related question entry in the front)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114466443034114925?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466443034114925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466443034114925'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/12/getting-compilers-for-amber-9.html' title='Getting Compilers for AMBER 9'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-7256468699415438833</id><published>2006-10-31T01:33:00.000-08:00</published><updated>2009-01-31T12:19:13.823-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>AMBER config.h for g95 on intel mac</title><content type='html'>Just for your information:
&lt;pre style="background-color:#c0ffc0;"&gt;AMBER_SRC=~/amber9/src
AMBERBUILDFLAGS=
LOCALFLAGS=
USE_BLASLIB=$(VENDOR_SUPPLIED)
USE_LAPACKLIB=$(VENDOR_SUPPLIED)
USE_LMODLIB=$(LMOD_UNAVAILABLE)
CC= gcc
CPLUSPLUS=g++
CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -m32
CPPFLAGS= $(AMBERBUILDFLAGS)
FPPFLAGS= -P -xassembler-with-cpp -DHASSECOND $(AMBERBUILDFLAGS)
FPP= cpp -traditional $(FPPFLAGS)
FC= g95
FFLAGS= -O0 -fno-second-underscore $(LOCALFLAGS) $(AMBERBUILDFLAGS)
FOPTFLAGS= -O3 -fno-second-underscore $(LOCALFLAGS) $(AMBERBUILDFLAGS)
FREEFORMAT_FLAG= -ffree-form
LOAD= g95  $(LOCALFLAGS) $(AMBERBUILDFLAGS)
LOADCC= gcc  $(LOCALFLAGS) $(AMBERBUILDFLAGS)
LOADLIB=-Wl,-framework -Wl,Accelerate
LM= -lm
LOADPTRAJ= g95 $(LOCALFLAGS) $(AMBERBUILDFLAGS)
XHOME= /usr/X11R6
XLIBS= -L/usr/X11R6/lib
#------------------------------------------------------------------------------
#  Other stuff:
#------------------------------------------------------------------------------
.SUFFIXES:  .f90
EMPTY=
AR=ar rv $(EMPTY)
M4=m4
RANLIB=ranlib
SFX=
NETCDF=
NETCDFLIB=
MODULEDIR=-I
MAKEDEPEND=$(AMBER_SRC)/../bin/amber_makedepend
SLKO=skipDFTB

#  default rules for Fortran and C compilation:

.f.o:   $$&amp;lt;
        $(FPP) $$&amp;lt; $&amp;gt; _$$&amp;lt;
        $(FC) -c $(FFLAGS) -o $@ _$$&amp;lt;

.c.o:   
        $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $&amp;lt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-7256468699415438833?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7256468699415438833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/7256468699415438833'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/10/amber-configh-for-g95-on-intel-mac.html' title='AMBER config.h for g95 on intel mac'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115325201251661836</id><published>2006-07-19T03:30:00.000-07:00</published><updated>2006-07-19T04:18:39.750-07:00</updated><title type='text'>Reading AMBER Trajectory in MacPyMOL</title><content type='html'>&lt;p&gt;Ray passed me a question from Prof. P, about the right way to load the AMBER trajectory in PyMOL. Let me use MacPyMOL as an example. Since I have not taken too much attention on MacPyMOL's GUI, I won't bother trying find the right button in the menu. However, I do know how to type the commands...&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/193284007/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/67/193284007_3f18d82813_o.png" width="400" height="231" alt="The Files and Application" /&gt;&lt;/a&gt;&lt;br /&gt;So first of all, you need to rename the topology file to *.top and the trajectory file to *.trj. In many cases of AMBER tutorials, the topology file suffix are usually &lt;span style="color:red;"&gt;prmtop&lt;/span&gt; and trajectory are normally &lt;span style="color:red;"&gt;crd&lt;/span&gt;. So rename these files to their suffixes respectively.

&lt;dt&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/193284009/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/66/193284009_ed039e93f4_o.png" width="348" height="227" alt="Drag it, Drag it, Drag it!" /&gt;&lt;/a&gt;&lt;br /&gt;
Then you can double click the topology file, say, linear.top on your desktop. You can also launch MacPyMOL first and then File --&amp;gt; Open the file. (Or, drag the *.top and drop it on MacPyMOL....) The file will be loaded as an object called "linear".&lt;br /&gt;
 &lt;a href="http://www.flickr.com/photos/mjhsieh/193284012/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/46/193284012_547bef3c6c_o.png" width="467" height="265" alt="Loaded as "linear"." /&gt;&lt;/a&gt;

&lt;dt&gt;After finished the loading, type the command (presumably your trajectory file is test.trj):&lt;pre&gt;load_trj ~/Desktop/test.trj, linear&lt;/pre&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/193284014/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/78/193284014_91f720d0ea_o.png" width="396" height="260" alt="load_traj to linear" /&gt;&lt;/a&gt;&lt;br /&gt;
Watch the progress bar in the upper right, it indicates the loading progress.

&lt;dt&gt;&lt;a href="http://www.flickr.com/photos/mjhsieh/193284015/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/72/193284015_96a723e670.jpg" width="500" height="389" alt="1000 frames loaded" /&gt;&lt;/a&gt;&lt;br /&gt;
There you have it. You can press play button to view the trajectory.&lt;br /&gt;
&lt;a href="http://www.flickr.com/photos/mjhsieh/193284019/" title="Photo Sharing"&gt;&lt;img src="http://static.flickr.com/69/193284019_8813336b08.jpg" width="500" height="390" alt="Playing Movie, action." /&gt;&lt;/a&gt;
&lt;/dl&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115325201251661836?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115325201251661836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115325201251661836'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/07/reading-amber-trajectory-in-macpymol.html' title='Reading AMBER Trajectory in MacPyMOL'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115252917653705489</id><published>2006-07-10T03:58:00.000-07:00</published><updated>2006-07-18T13:25:36.160-07:00</updated><title type='text'>Site CSS Refactorizing</title><content type='html'>This site is undergoing CSS refactorization, please be patient should there be formating problems in the blog entries.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115252917653705489?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115252917653705489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115252917653705489'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/07/site-css-refactorizing.html' title='Site CSS Refactorizing'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115128576965138863</id><published>2006-06-25T18:33:00.000-07:00</published><updated>2007-10-22T15:35:13.055-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Line Endings and LEaP programs</title><content type='html'>&lt;p&gt;AFAIK, Apple has not declared a standard line ending for Mac OS X even now. But the convention of MacOS 9 is using CR (a single Carriage-Return character) while the nature of UNIX in Mac OS X is favoring LF (a single Line-Feed character) as the default line ending. Also the line ending of DOS/Windows is CRLF (a Carriage-Return + Line-Feed pair).&lt;/p&gt;

&lt;p&gt;Both DOS and MacOS 9 line endings show ^M under UNIX but different style. Therefore if you use LEaP to import text file (e.g. PDB file) from Windows or from Mac, it's highly possible that LEaP doesn't like the format at all. The "default" text editor in Mac OS X TextEdit.app can recognize either of the 3 kind of the line ending but it probably simply us CR.&lt;/p&gt;

&lt;p&gt;From the AMBER Mail Reflector, Professor Di Giorgio complaint about the problem loading PDB file in LEaP program, and I checked the file the professor posted on the reflector, I not only found CR endings also separated LF endings! So I recommend to use a perl script (I call it: mac2unix) to fix the problem,
&lt;pre style="color:red;"&gt;#!/usr/bin/perl -pi
chomp;
s/\r/\n/g;&lt;/pre&gt;
Use nano command to create this file, and then &lt;code style="color:green;"&gt;chmod +x&lt;/code&gt; this file. Later you can just do &lt;code style="color:green;"&gt;./mac2unix Desktop/znnew.pdb&lt;/code&gt; to convert the line endings.&lt;/p&gt;

&lt;b&gt;References:&lt;/b&gt;
&lt;ol&gt;
&lt;li&gt; Apple Computer 2006. &lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/03_01_ed_file_attr/chapter_18_section_4.html"&gt;Changing Line Endings&lt;/a&gt;. In &lt;i&gt;&lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/00_intro/chapter_1_section_1.html"&gt;Xcode 2.3 User Guide&lt;/a&gt;&lt;/i&gt;.
&lt;li&gt;Di Giorgio. 2006. &lt;a href="http://amber.ch.ic.ac.uk/archive/200606/0153.html"&gt;Difficulty loading a pdb file&lt;/a&gt;. In &lt;i&gt;The AMBER Mail Reflector&lt;/i&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115128576965138863?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115128576965138863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115128576965138863'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/06/line-endings-and-leap-programs.html' title='Line Endings and LEaP programs'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114972804987167734</id><published>2006-06-07T17:48:00.000-07:00</published><updated>2007-10-22T15:36:30.123-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Single thread AMBER 9 with Absoft Pro Fortran</title><content type='html'>Basically AMBER 9 compiles perfectly with Absoft Pro Fortran (my evaluation copy is version 9.2), you can just launch:
&lt;pre style="color:green;"&gt;% ./configure -nopar absoft
% make serial&lt;/pre&gt;
The binaries generated from here passed most of the test under amber9 except noesy related tests and antechamber tests. These two can be problematic even in other compilers, so I'll leave it there for now. If anyone has any further problem, just post in the amber user mailing list.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114972804987167734?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114972804987167734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114972804987167734'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/06/single-thread-amber-9-with-absoft-pro.html' title='Single thread AMBER 9 with Absoft Pro Fortran'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114701301723517122</id><published>2006-05-15T14:25:00.000-07:00</published><updated>2007-10-22T15:36:30.123-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Building LAM-MPI Libraries without Root Permission</title><content type='html'>&lt;p&gt;This example has been tested on ppc machine with XL FORTRAN compiler. Strange enough, xlc is not working at this point, AMBER 9 only needs F90 compiler support from LAM anyway. These are the commands:&lt;br /&gt;
&lt;code style="color:green;"&gt;% env FC=xlf_r F77=xlf_r LDFLAGS=-lSystemStubs ./configure --with-rsh="/usr/bin/ssh -x" --prefix=/Users/johndoe/opt/lam --with-memory-manager=none&lt;br /&gt;
% make&lt;br /&gt;
% make install&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Following example has been tested on intel core duo machine with Intel FORTRAN compiler. These are the commands:&lt;br /&gt;
&lt;code style="color:green;"&gt;% env FC=ifort F77=ifort ./configure --with-rsh="/usr/bin/ssh -x" --prefix=/Users/johndoe/opt/lam&lt;br /&gt;
% make&lt;br /&gt;
% make install&lt;/code&gt;&lt;/p&gt;

Later you just need to add ~/opt/lam into your path, no root permission needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114701301723517122?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114701301723517122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114701301723517122'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/building-lam-mpi-libraries-without.html' title='Building LAM-MPI Libraries without Root Permission'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114730835644852598</id><published>2006-05-10T17:45:00.000-07:00</published><updated>2007-10-22T15:35:13.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Compiling AMBER 9 with xlf90 but without xlc</title><content type='html'>&lt;p&gt;AMBER 9 can be built with solely xlf90 but without xlc. In order to do so, just do ordinary &lt;code style="color:green;"&gt;./configure -nopar xlf90_macosx&lt;/code&gt; and replace "xlc" in the config.h file with "gcc". But this probably will cause following problem when compiling ptraj:&lt;br /&gt;
&lt;code&gt;/usr/bin/ld: warning multiple definitions of symbol _second
second.o definition of _second in section (__TEXT,__text)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Fra
meworks/vecLib.framework/Versions/A/libLAPACK.dylib(single mod
ule) definition of _second&lt;br /&gt;
/usr/bin/ld: Undefined symbols:&lt;br /&gt;
_fprintf$LDBLStub&lt;br /&gt;
_printf$LDBLStub&lt;br /&gt;
_fscanf$LDBLStub&lt;br /&gt;
_sprintf$LDBLStub&lt;br /&gt;
_sscanf$LDBLStub&lt;br /&gt;
_vfprintf$LDBLStub&lt;br /&gt;
make: *** [rdparm] Error 1&lt;/code&gt;&lt;/p&gt;

For this, just try to add -Wl,-lSystemStubs in the LOADLIB parameter of config.h and we are all set. (I am guessing -lSystemStubs also works, but I am a little bit lazy, please test by yourself...)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114730835644852598?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114730835644852598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114730835644852598'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/compiling-amber-9-with-xlf90-but.html' title='Compiling AMBER 9 with xlf90 but without xlc'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114471206304883592</id><published>2006-05-10T17:15:00.000-07:00</published><updated>2008-03-26T12:37:52.436-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Running Parallelly</title><content type='html'>&lt;ul&gt;&lt;h3&gt;In order to use MPI programs, you need to make SSH works for you:&lt;/h3&gt;
&lt;li&gt;You need to connect to the computing nodes from job schedular server without entering password. So check out &lt;a href="http://homepage.mac.com/wyuen/hpc/Passwordless_SSH.html"&gt;this great stuff&lt;/a&gt; that Warner wrote at his HPC homepage.
&lt;li&gt;You also need to check out if your ssh is happy with the ssh fingerprint of every computing nodes. You can check this by manually ssh connecting every node you might use later for computation.
&lt;h3&gt;Using mpirun&lt;/h3&gt;
&lt;li&gt;lam-mpi
&lt;ol&gt;
&lt;li&gt;Make sure that lamboot/lamhalt is in your path
&lt;li&gt;Manage machine file
&lt;pre&gt;# From $LAM_HOME/lam-7.1-xlf/etc/lam-bhost.def
#farq046c cpu=1
#murasaki cpu=2
localhost
# It's somehow okay to be lazy about cpu count, but it's
# highlyrecommended to add cpu={cpucount} when having 
# multiple nodes defined&lt;/pre&gt;FYI: the host definition can be added to the &lt;code&gt;/etc/hosts&lt;/code&gt; file or &lt;code&gt;$LAM_HOME/etc/lam-hostmap.txt&lt;/code&gt; file.
&lt;li&gt;&lt;code style="color:green;"&gt;% lamboot -v machinefile&lt;/code&gt;&lt;li&gt;SYSV (shared memory)&lt;pre style="color:green;"&gt;% mpirun -ssi rpi sysv -np 2 {command}&lt;/pre&gt;
&lt;li&gt;Overthenetwork&lt;br /&gt;
&lt;code style="color:green;"&gt;% mpirun -ssi rpi tcp -np {# of cpus to run} {command}&lt;/code&gt;&lt;br /&gt;
For manual test:&lt;br /&gt;
&lt;code style="color:green;"&gt;% cd $AMBERHOME/test/4096wat&lt;br /&gt;
% env TESTsander=../../exe/sander.MPI DO_PARALLEL="mpirun -ssi rpi sysv -np 2" ./Run.pure_wat&lt;/code&gt;&lt;br /&gt;
or
&lt;pre style="color:green;"&gt;% cd $AMBERHOME/test
% env DO_PARALLEL="mpirun -ssi rpi sysv -np 2" make test.parallel&lt;/pre&gt;
&lt;li&gt;Please remember to clean your mess with &lt;code&gt;lamhalt&lt;/code&gt;&lt;/ol&gt;
&lt;li&gt;mpich
&lt;ol&gt;
&lt;li&gt;Still, make sure mpirun is in your path settings on the nodes. (just in case)
&lt;li&gt;Write a machinefile defining available resources:
&lt;pre&gt;# hostname:{# of processors you want to run for this host}
# like:
# 192.168.0.1:2
# or just use multiple hostname like:
192.168.0.1
192.168.0.1&lt;/pre&gt;
These hostnames also imply the routing to the nodes in the case of running across the network...
&lt;li&gt;shmem (shared memory) example:&lt;br /&gt;
&lt;code style="color:green;"&gt;% cd $AMBERHOME/test
% env DO_PARALLEL="/opt/mpich/bin/mpirun -arch smp -machinefile /tmp/machinefile -np 2" make test.sander.BASIC.MPI&lt;/code&gt;
&lt;li&gt;Overthenetwork: normally you don't need to specify the arch argument, just to make sure that machinefile is correct.&lt;li&gt;Pass some options to mpirun for optimal socket efficiency, like adding &lt;code style="color:green;"&gt;'env P4_SOCKBUFSIZE=524288'&lt;/code&gt; in front of the mpirun argument like this:&lt;br /&gt;
&lt;code style="color:green;"&gt;% cd $AMBERHOME/test&lt;br /&gt;
% env P4_SOCKBUFSIZE=524288 DO_PARALLEL="/opt/mpich/bin/mpirun -machinefile /tmp/machinefile -np 2" make test.sander.BASIC.MPI&lt;/code&gt;&lt;li&gt;use /opt/mpich/sbin/cleanipcs if your mpich program crashes in the middle.
&lt;/ol&gt;
&lt;/ul&gt;


While there may be a possibility using xgrid but since I am not familiar with the xgrid, I am not going to talk about it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114471206304883592?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114471206304883592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114471206304883592'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/running-parallelly.html' title='Running Parallelly'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114679616295080520</id><published>2006-05-10T17:02:00.000-07:00</published><updated>2007-10-22T15:36:30.124-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>Building MPICH Libraries without Root Permission</title><content type='html'>&lt;h2&gt;On PowerPC (G4/G5)&lt;/h2&gt;
&lt;p&gt;This article is based on &lt;a href="http://homepage.mac.com/wyuen/hpc/Compiling_MPICH.html"&gt;Warner's documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I am using mpich-1.2.7p1 from the mpich homepage. Here, C++ interface is disabled for now, I have no idea why xlc failed to be used as c++ compiler by the configure script.&lt;br /&gt;
&lt;code style="color:green;"&gt;% env FC=xlf_r CC=xlc_r F90=xlf90_r RSHCOMMAND=ssh SOCKSIZE=65536 ./configure --disable-cxx --without-romio --without-mpe --with-device=ch_p4 --with-device=ch_shmem --enable-sharedlib --prefix=/Users/johndoe/opt/mpich&lt;br /&gt;
% make&lt;br /&gt;
% make install&lt;br /&gt;
% find /Users/johndoe/opt/mpich -name '*.a' -exec ranlib -c {} \;&lt;/code&gt;&lt;br /&gt;
(This is for just in case that linking problem shows up later in amber compilation. It might generate "no symbols" message, don't worry about it.)&lt;/p&gt;

&lt;h2&gt;Later I'll finish the part for Intel CPU based Macintosh.&lt;/h2&gt;
&lt;p&gt;&lt;span style="color:white;"&gt;env SOCKSIZE=65536 RSHCOMMAND=ssh CC=icc CXX=icpc FC=ifort F90=ifort ./configure --with-device=ch_p4 --with-device=ch_shmem --prefix=/home/software/mpich&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114679616295080520?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114679616295080520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114679616295080520'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/building-mpich-libraries-without-root.html' title='Building MPICH Libraries without Root Permission'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114717279935029919</id><published>2006-05-09T04:05:00.000-07:00</published><updated>2006-05-09T04:06:39.366-07:00</updated><title type='text'>Guestbook</title><content type='html'>This entry is now dedicated to a guestbook function.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114717279935029919?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amberonmac.blogspot.com/feeds/114717279935029919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25770801&amp;postID=114717279935029919' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114717279935029919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114717279935029919'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/guestbook.html' title='Guestbook'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114707933033370791</id><published>2006-05-08T01:50:00.000-07:00</published><updated>2007-10-22T15:35:13.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>/usr/bin/ld: -L: directory name missing</title><content type='html'>When compiling xleap under certain version of developer tools, you might encounter such error message:
&lt;ul&gt;&lt;code&gt;gcc -o xaLeap basics.o sysdepend.o stringExtra.o varArray.o getline.o avl.o pdb_format.o pdb_read.o pdb_sprntf.o pdb_sscanf.o pdb_write.o vector.o zMatrix.o sort.o bag.o hash.o dictionary.o database.o nVector.o ring.o matrix.o fortran.o displayer.o assoc.o atom.o byteArray.o collection.o container.o internal.o list.o loop.o molecule.o oDouble.o oInteger.o oString.o objekt.o parmSet.o residue.o unit.o unitio.o tripos.o graphUtil.o select.o amber.o build.o elements.o library.o chirality.o minimizer.o model.o parmLib.o pdbFile.o tools.o variables.o parser.o help.o helptext.o octree.o commands.o mathop.o block.o restraint.o hybrid.o xTank.o xAction.o x3d.o xBasics.o xaLeapc.o xaUnitEditor.o xaTable.o xaAtomTable.o  XrawRegistr.o xaCommand.o xaTools.o xaAtomParmTable.o xaBondParmTable.o  xaAngleParmTable.o xaParmEditor.o xaTorsionParmTable.o xaImproperParmTable.o  xaHBondParmTable.o ../ Xraw/libXaw.a ../Wc/libWcLeap.a ../Xpm/libXpm.a ../Xmu/libXmu.a -L /usr/X11R6/lib -lXt -lXext -lSM -lICE -lX11 -lm -lpthread&lt;br /&gt;
&lt;br /&gt;
/usr/bin/ld: -L: directory name missing&lt;/code&gt;&lt;/ul&gt;
This is due to somehow more strict behavior in certain versions of &lt;code&gt;ld&lt;/code&gt; (the ld on my iMac Core Duo and an user reported that an iMac G5 also has that.). &lt;strike&gt;The manual solution is to modify your config.h file before issuing &lt;code&gt;make&lt;/code&gt; command: to eliminate the space character between &lt;code&gt;-L&lt;/code&gt; and &lt;code&gt;/usr/X11R6/lib&lt;/code&gt;. This should solve the problem.&lt;/strike&gt; &lt;span style="color:red;"&gt;A better way to do it is to apply the bugfix.3 patch&lt;/span&gt; at &lt;a href="http://amber.scripps.edu/bugfixes90.html"&gt;AMBER 9 bugfixes page&lt;/a&gt;.
&lt;pre style="color:green;"&gt;% cd amber9/src
% curl http://amber.scripps.edu/bugfixes/9.0/bugfix.3 -o /tmp/bugfix.3
% patch -p0 -N -r patch_rejects &lt; /tmp/bugfix.3&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114707933033370791?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114707933033370791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114707933033370791'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/usrbinld-l-directory-name-missing.html' title='/usr/bin/ld: -L: directory name missing'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114679623960531899</id><published>2006-05-07T07:20:00.000-07:00</published><updated>2007-10-22T15:35:13.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Building AMBER 9 Parallel Ports with Pre-built MPI Libraries with XLF90</title><content type='html'>&lt;p&gt;For years my impression was that prebuilt binaries for something like MPI library only bring me troubles, therefore I normally recommend compiling MPI library by ourselves. Take this prebuilt mpich package from hpc.sourceforge.net for example:&lt;br /&gt;
&lt;a href="http://hpc.sourceforge.net/" title="Downloading MPICH"&gt;&lt;img src="http://static.flickr.com/44/141878756_807d5a3628.jpg" alt="Downloading MPICH" style="max-width: 500px;min-width:5.5em;border:0;width:100%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This doesn't work with AMBER 9. Several reasons that this is not working with
&lt;code style="color:green;"&gt;env MPI_HOME=/usr/local/mpich ./configure -mpich xlf90_macosx&lt;/code&gt;
are:
&lt;ol&gt;
&lt;li&gt;the library function names have double-underscore tail xlf90 can not produce more than one underscore.
&lt;li&gt;&lt;code  style="color:green;"&gt;/usr/local/mpich/bin/mpif90 -show&lt;/code&gt; is not working, the configure script is not happy. (&lt;i&gt;i.e.&lt;/i&gt; This mpich has to be configured with f90 option.)
&lt;/ol&gt;
&lt;p&gt;When it goes to LAM-MPI, you might think that the official build from lam-mpi homepage should be working:&lt;br /&gt;
&lt;a href="http://www.lam-mpi.org/7.1/download.php" title="Downloading"&gt;&lt;img src="http://static.flickr.com/52/141869158_c48f486076.jpg" alt="Downloading LAM-MPI" style="max-width: 500px;min-width:5.5em;border:0;width:100%;" /&gt;&lt;/a&gt;&lt;br /&gt;
Unfortunately this doesn't work with AMBER 9, either. The reason is similar, no FORTRAN options were compiled into the package. (see the output of &lt;code  style="color:green;"&gt;/usr/local/bin/mpif77 -showme&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;Then I stumbled across another build from York University:&lt;br /&gt;
&lt;a href="http://dryden.biol.yorku.ca/macosx/" title="Scientific Software for Mac OS X"&gt;&lt;img src="http://static.flickr.com/55/141878758_e9b2d1ef42.jpg" alt="Downloading LAM-MPI-xlf90" style="max-width: 500px;min-width:5.5em;border:0;width:100%;" /&gt;&lt;/a&gt;&lt;br /&gt;
This seems to be working. These steps are required:
&lt;ol&gt;
&lt;li&gt;&lt;code style="color:green;"&gt;mkdir -p /Applications/Darwin; tar zxvf lam-7.1-xlf.tar.gz -C /Application/Darwin/&lt;/code&gt; (Not everyone can write to /Applications/, so it's not very ideal for ordinary endusers of a Macintosh cluster.)
&lt;li&gt;If you got this error when doing &lt;code style="color:green;"&gt;make parallel&lt;/code&gt;:&lt;br /&gt;
&lt;code&gt;/usr/bin/ld: table of contents for archive: /Applications/Darwin/lam-7.1-xlf/lib/liblammpio.a is out of date; rerun 
ranlib(1) (can't load from it)&lt;br /&gt;
/usr/bin/ld: table of contents for archive: /Applications/Darwin/lam-7.1-xlf/lib/liblamf77mpi.a is out of date; rerun 
ranlib(1) (can't load from it)&lt;br /&gt;
/usr/bin/ld: table of contents for archive: /Applications/Darwin/lam-7.1-xlf/lib/libmpi.a is out of date; rerun 
ranlib(1) (can't load from it)&lt;br /&gt;
/usr/bin/ld: table of contents for archive: /Applications/Darwin/lam-7.1-xlf/lib/liblam.a is out of date; rerun 
ranlib(1) (can't load from it)&lt;br /&gt;
make[1]: *** [sander.MPI] Error 1&lt;br /&gt;
make: *** [parallel] Error 2&lt;/code&gt;&lt;br /&gt;
Don't panic, just do "&lt;code style="color:green;"&gt;ranlib /Applications/Darwin/lam-7.1-xlf/lib/*.a&lt;/code&gt;".
&lt;li&gt;Please remember to put /Applications/Darwin/lam-7.1-xlf/bin in the path or lamboot won't start.
&lt;/ol&gt;
&lt;p&gt;Some friends might find that the AMBER 9 compilation fails and gives some errors like this:&lt;br /&gt;
&lt;code&gt;xlf90_r -qfree=f90 -o sander.MPI [skipped a lot of *.o obj]  ../lmod/lmod.a  ../lapack/lapack.a ../blas/blas.a  ../lib/nxtsec.o ../lib/sys.a &lt;span style="color:red;"&gt;-L/usr/local/mpich/lib -lpmpich -lmpich -lpmpich -lmpich&lt;/span&gt; -Wl,-framework -Wl,Accelerate&lt;br /&gt;
/usr/bin/ld: Undefined symbols:&lt;br /&gt;
_mpi_bcast&lt;br /&gt;
_mpi_irecv&lt;br /&gt;
**********&lt;br /&gt;
***OMIT***&lt;br /&gt;
**********&lt;br /&gt;
_mpi_waitany&lt;br /&gt;
_mpi_waitall&lt;br /&gt;
_mpi_type_free&lt;br /&gt;
make[1]: *** [sander.MPI] Error 1&lt;br /&gt;
make: *** [parallel] Error 2&lt;/code&gt;&lt;br /&gt;
Here we need to check first of all if the library we are linking (red colored in the error log above.) exists. But in case you don't even have those red colored argument, your pre-built MPI library is not working. If the library files indeed exist, use "&lt;code style="color:green;"&gt;nm&lt;/code&gt;" command to check the names of the functions. For example:
&lt;pre style="color:green;"&gt;nm /usr/local/mpich/lib/libmpich.a | grep mpi_type_free&lt;/pre&gt;
If the result is &lt;code&gt;00000000 T _mpi_type_free_&lt;/code&gt;, then you can add some argument to tell xlf90 you need to add a trailing underscore to the function name you want to.
&lt;pre style="color:green;"&gt;make -e AMBERBUILDFLAGS="-qextname=mpi_bcast:mpi_irecv:...skipped..."&lt;/pre&gt;
but for &lt;code&gt;00000000 T _mpi_type_free__&lt;/code&gt; (two trailing underscores), please just give up and build your own library instead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114679623960531899?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114679623960531899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114679623960531899'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/building-amber-9-parallel-ports-with.html' title='Building AMBER 9 Parallel Ports with Pre-built MPI Libraries with XLF90'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114670436401168611</id><published>2006-05-03T17:47:00.000-07:00</published><updated>2007-10-22T15:36:30.124-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Solving nmr_aux problem with IBM XL C compiler</title><content type='html'>&lt;p&gt;According to the AMBER reflector, there were several people reporting&lt;sup style="font-size:large;"&gt;[&lt;a href="http://amber.ch.ic.ac.uk/archive/200508/0171.html" title="compilation problem (Mac OS X.4)"&gt;1&lt;/a&gt;], [&lt;a href="http://amber.ch.ic.ac.uk/archive/200604/0279.html" title="AMBER9: MacG5 parallel sander.MPI"&gt;2&lt;/a&gt;]&lt;/sup&gt; compilation problem in nmr_aux directory.&lt;/p&gt;

 &lt;code&gt;/usr/bin/ld: can't open: NULL (No such file or directory, errno = 2)&lt;/code&gt;

&lt;p&gt;Although for some reason it doesn't seem to be affecting me, but the solution can be found at ABSoft's technical archives&lt;sup  style="font-size:large;"&gt;[&lt;a href="http://www.absoft.com/Support/FAQ/xlcfaq.html"&gt;3&lt;/a&gt;]&lt;/sup&gt;. Basically it's like changing &lt;code&gt;/etc/opt/ibmcmp/vac/6.0&lt;/code&gt; from the line &lt;code&gt;crtbegin = NULL&lt;/code&gt; to &lt;code&gt;#crtbegin = NULL&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then try to compile it again. If you don't have the permission to change the file, you can copy the vac.cfg file to your
own directory and modify that file. (say, your home directory) Then change the xlc argument to
&lt;pre style="color:green;"&gt;xlc -F/Users/youraccountname/vac.cfg&lt;/pre&gt;
in amber9/src/config.h file....&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114670436401168611?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114670436401168611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114670436401168611'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/05/solving-nmraux-problem-with-ibm-xl-c.html' title='Solving nmr_aux problem with IBM XL C compiler'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114466453646551938</id><published>2006-04-10T03:21:00.000-07:00</published><updated>2007-10-22T15:35:13.057-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Benchmark</title><content type='html'>The benchmark data goes here. (mjhsieh also gave his ifort testimonial to Intel, it probably will show up somewhere in their advertisements...)

&lt;h1&gt;Factor IX Benchmarks&lt;/h1&gt;
&lt;b&gt;iMac Core Duo 2.0GHz 512M RAM (Mac OS X 10.4.5) w/GNU Fortran 4.0.2/LAM 7.1.1 on share memory&lt;/b&gt;
&lt;table  border='1'&gt;&lt;tr &gt;&lt;td &gt;&amp;nbsp;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;PMEMD 9.0&lt;/strong&gt;&lt;/td&gt;&lt;td &gt;&amp;nbsp;&lt;/td&gt;&lt;td  align='left'&gt;&lt;strong&gt;Sander 9.0&lt;/strong&gt;&lt;/td&gt;&lt;td &gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr &gt;&lt;td  align='center'&gt;&lt;strong&gt;cpus&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Ps/day&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Speedup&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Ps/day&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Speedup&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr &gt;&lt;td  align='center'&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;n/a&lt;/td&gt;&lt;td  align='center'&gt;n/a&lt;/td&gt;&lt;td  align='center'&gt;47.04&lt;/td&gt;&lt;td  align='center'&gt;1.00&lt;/td&gt;&lt;/tr&gt;&lt;tr &gt;&lt;td  align='center'&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;n/a&lt;/td&gt;&lt;td  align='center'&gt;n/a&lt;/td&gt;&lt;td  align='center'&gt;83.66&lt;/td&gt;&lt;td  align='center'&gt;1.78&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;b&gt;iMac Core Duo 2.0GHz 512M RAM (Mac OS X 10.4.5) w/Intel Fortran 9.1b/Intel MKL 8.1b/LAM 7.1.1 on share memory&lt;/b&gt;
&lt;table  border='1'&gt;&lt;tr &gt;&lt;td &gt;&amp;nbsp;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;PMEMD 9.0&lt;/strong&gt;&lt;/td&gt;&lt;td &gt;&amp;nbsp;&lt;/td&gt;&lt;td  align='left'&gt;&lt;strong&gt;Sander 9.0&lt;/strong&gt;&lt;/td&gt;&lt;td &gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr &gt;&lt;td  align='center'&gt;&lt;strong&gt;cpus&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Ps/day&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Speedup&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Ps/day&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;&lt;strong&gt;Speedup&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr &gt;&lt;td  align='center'&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;110.58&lt;/td&gt;&lt;td  align='center'&gt;1.00&lt;/td&gt;&lt;td  align='center'&gt;66.71&lt;/td&gt;&lt;td  align='center'&gt;1.00&lt;/td&gt;&lt;/tr&gt;&lt;tr &gt;&lt;td  align='center'&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;&lt;td  align='center'&gt;186.21&lt;/td&gt;&lt;td  align='center'&gt;1.68&lt;/td&gt;&lt;td  align='center'&gt;111.48&lt;/td&gt;&lt;td  align='center'&gt;1.67&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h1&gt;Jac Benchmarks&lt;/h1&gt;
&lt;b&gt;JAC benchmark with nstlim=10000 on sander of AMBER9 in current CVS repository. All binaries were compiled with ifort with/without math kernel. HTT means hyper-threading enabled (4 HTT cpus are actually 2 physical cpus).&lt;/b&gt;
&lt;pre&gt;4×2 Xeon 3G HTT | Total time 1993.87 (noMKL/MPICH/GbE)
4×  Xeon 3G HTT | Total time 3016.86 (w_MKL/MPICH/p4shmem)
2×  Core Duo 2G | Total time 3203.11 (w_MKL/LAM/SYSV)
2× Pentium D 3G | Total time 3389.14 (w_MKL/LAM/SYSV)
2× Pentium D 3G | Total time 3423.32 (w_MKL/MPICH/p4shmem)
1×  Core Duo 2G | Total time 5633.56 (w_MKL/noMPI)
1× Pentium D 3G | Total time 6367.24 (w_MKL/noMPI)&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114466453646551938?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466453646551938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466453646551938'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/04/benchmark.html' title='Benchmark'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114466060985996982</id><published>2006-04-10T02:10:00.000-07:00</published><updated>2007-10-22T15:35:13.057-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Compiling AMBER 9 on Intel based macintosh with Intel fortran</title><content type='html'>Normally you just use following commands to compile AMBER 9 on intel based macintosh:
&lt;pre style="color:green;"&gt;% ./configure -nopar ifort_macosx
% perl -pi -e 's/-L \/usr\/X11R6\/lib/-L\/usr\/X11R6\/lib/' config.h
% make serial&lt;/pre&gt;The reason getting rid of the space before /usr/X11R6/lib is that Mac OS X on intel based macintosh does not like space between the path and "-L"..... Don't blame me for forgetting this minor issue. It's more like to be fixed in next patch. :-)

If you like to use intel math kernel library, use these:
&lt;pre style="color:green;"&gt;% env MKL_HOME=$MKL ./configure -nopar ifort_macosx
% perl -pi -e 's/-L \/usr\/X11R6\/lib/-L\/usr\/X11R6\/lib/' config.h
% make serial&lt;/pre&gt;
For compiling with parallel library, here is an example:
&lt;pre style="color:green;"&gt;% env MPI_HOME=/opt/lam MKL_HOME=$MKL ./configure -lam ifort_macosx
% perl -pi -e 's/-L \/usr\/X11R6\/lib/-L\/usr\/X11R6\/lib/' config.h
% make serial&lt;/pre&gt;(My lam/mpi was installed at /opt/lam, change it to your own lam path.)

For more information about the parallel library, try to figure it out from other macintosh resource, I can't promise writing one since it's a little bit tedious...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114466060985996982?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466060985996982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114466060985996982'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/04/compiling-amber-9-on-intel-based.html' title='Compiling AMBER 9 on Intel based macintosh with Intel fortran'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-114465761624218074</id><published>2006-04-10T00:31:00.000-07:00</published><updated>2007-10-22T15:36:30.125-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='AMBER9'/><title type='text'>Compiling AMBER 9 on g4/g5 with XL compiler</title><content type='html'>&lt;p&gt;Basically AMBER9 provides you an out of box compatibility on PPC Macintosh if you use IBM XL compilers. What you need to do is:
&lt;pre  style="color:green;"&gt;% ./configure -nopar xlf90_macosx
% make serial&lt;/pre&gt;
With this &lt;a href="http://webfiles.uci.edu/mengjueh/public/amber9_xlf90_macosx_configure.patch.txt"&gt;modification&lt;/a&gt;, the test (make test.serial) passes without failure. However, even if you don't apply this patch, you can still get an almost working config.h ...&lt;/p&gt;

&lt;p&gt;One noticeable change of this patch is that the underscore extension name for blas/lapack function calls are no long required probably because the current library provided by Apple (10.4.5) already took care of that.&lt;/p&gt;

&lt;p&gt;If you don't have XL C compiler, you might have trouble compiling it. This issue is fixable, but if you are having trouble modifying config.h by yourself, please drop your question in the AMBER mail reflector.&lt;/p&gt;

&lt;p&gt;For parallel computing, I recommend LAM-MPI for now. See &lt;a href="http://homepage.mac.com/wyuen/hpc/Compiling_LAM-MPI.htm"&gt;Warner's tutorial&lt;/a&gt; when compiling LAM. As to the linking issue, I'll address this more later.&lt;/p&gt;

&lt;p&gt;Also some might experience the problem of not finding a NULL file with XL C. Please read &lt;a href="/2006/05/solving-nmraux-problem-with-ibm-xl-c.html"&gt;the later post here&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-114465761624218074?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114465761624218074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/114465761624218074'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2006/04/compiling-amber-9-on-g4g5-with-xl.html' title='Compiling AMBER 9 on g4/g5 with XL compiler'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115288874346170483</id><published>2005-07-20T17:30:00.000-07:00</published><updated>2007-10-22T15:36:30.125-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>AMBER 8 PMEMD Benchmarks on Xserve G5 Cluster</title><content type='html'>&lt;p class="paragraph"&gt;
&lt;div class="revision"&gt;(2005-07-01 11:41:03 Update: The original benchmark did not use any code modifications for G5. New benchmark is faster.)(Update: files posted)&lt;br /&gt;The contributions have been made by Apple Computer are really nice! Thank you guys!&lt;/div&gt;
&lt;a href="http://www.flickr.com/photos/mjhsieh/22870704/"&gt;&lt;img src="http://photos19.flickr.com/22870704_7316701bb1_m.jpg" style="float:right;margin-left:5px;border:0;" /&gt;&lt;/a&gt;Recently I got some chances to access Xserve G5 clusters in UC Irvine and in Apple Computer. The &lt;a href="http://developer.apple.com/hardware/hpc/index.html"&gt;Research Computing group&lt;/a&gt; in Apple Computer is kind enough to share their progress on optimizing PMEMD with me. The modification seems to be very nice also maintaining good double precision accuracy. Here is a tarball of the files got modified during this test: &lt;a href="http://apple.sysbio.info/~mjhsieh/source/pmemd_modification.tgz"&gt;pmemd_modification.tgz&lt;/a&gt;. Of course, md5 and filelist are here&lt;pre&gt;MD5 (pmemd_modification.tgz) = 4600a2f66e40995bb087e6eb21b8a360
pmemd/configure
pmemd/src/ew_direct_cit.f90
pmemd/src/short_ene_G5_opt.f90
pmemd/config_data/macosx_g4.xlf90.nopar
pmemd/config_data/macosx_g5.xlf90.lam
pmemd/config_data/macosx_g5.xlf90.mpich_gm
pmemd/config_data/macosx_g5.xlf90.nopar&lt;/pre&gt;
Also, the usages of this modified configure script for the g5 can be found here:&lt;pre style="color:green;"&gt;./configure macosx_g4 xlf90 nopar
./configure macosx_g5 xlf90 nopar
./configure macosx_g5 xlf90 lam
./configure macosx_g5 xlf90 mpich_gm&lt;/pre&gt;*Important* Please make sure to backup the old source files before untar this tarball.&lt;br style="clear:both;" /&gt;&lt;/p&gt;

&lt;p class="paragraph"&gt;As to the AltiVec patch I proposed last year, I don't think it really matters because of the precision issue --- AltiVec is a floating point monster, but it's not even a double precision animal.&lt;/p&gt;

&lt;p class="paragraph"&gt;This benchmark is following the way we do in &lt;a href="http://amber.scripps.edu/amber8.bench1.html"&gt;AMBER 8 benchmark page&lt;/a&gt;. In default JAC benchmark, the simulation undergoes 1 pico second time scale. So the performance measure ppd (ps per day) would be the ratio of 86400 over the time consumed by the simulation.&lt;/p&gt;

&lt;p class="paragraph"&gt;&lt;img src="http://photos19.flickr.com/22870704_7316701bb1_o.jpg" style="border:0;" alt="JAC Benchmark on Xserve G5 Cluster" /&gt;&lt;br /&gt;
This plot clearly shows that the code optimization for G5 does improve the performance. It also tells us that mpich-gm scales pretty well.&lt;/p&gt;

&lt;p style="clear:both;" class="paragraph"&gt;In this table, NACS_UCI is the demo Xserve Dual G5 cluster hosted by Research Computing Support, NACS, UC Irvine while RC_AAPL is the demo Xserve Dual G5 cluster kindly provided by the Research Computing group in Apple Computer.&lt;pre&gt;  =============================================================================
  "jac" == Joint Amber/Charrm DHFR benchmark.  This is the protein DHFR,
  solvated with TIP3 water, in a periodic box.  There are 23,558 total atoms,
  and PME used with a direct space cutoff of 9 Ang.  This is the benchmark
  in benchmarks/jac subdirectory of the Amber 8 distribution.  Results
  here are for pmemd.

  --------------------------------------------------------------------------------
  name   date      CPU              OS         compiler  npcu    ps per day
  --------------------------------------------------------------------------------
NACS_UCI  6/05 2.0 Ghz G5        MacOS X 10.3   xlf8.1    2        336
               GbE, LAM/MPI
 RC_AAPL  7/05 2.0 Ghz G5        MacOS X 10.3   xlf8.1    1        180
               GbE, LAM/MPI                               2        324
                                                          4        561
                                                          6        758
                                                          8       1005
                                                         10       1168
                                                         12       1290
                                                         14       1440
                                                         16       1516
 RC_AAPL  7/05 2.0 Ghz G5        MacOS X 10.3   xlf8.1    1        180
               myrinet, MPICH-GM                          2        325
                                                          4        596
                                                          6        873
                                                          8       1094
                                                         10       1371
                                                         12       1600
                                                         14       1878
                                                         16       2057&lt;/pre&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115288874346170483?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115288874346170483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115288874346170483'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2005/07/amber-8-pmemd-benchmarks-on-xserve-g5.html' title='AMBER 8 PMEMD Benchmarks on Xserve G5 Cluster'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-1523052114589936894</id><published>2004-10-14T15:10:00.000-07:00</published><updated>2009-10-14T15:18:08.301-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='amber7'/><title type='text'>% process_mdout: Permission denied</title><content type='html'>Problem Description: user copied process_mdout.perl from a workstation to a local macintosh with Mac OS X, user encountered:
&lt;pre&gt;&lt;code&gt;% process_mdout.perl model1min2.out
% process_mdout: Permission denied.&lt;/code&gt;&lt;/pre&gt;
This can be solved either by &lt;code&gt;% chmod +x process_mdout.perl&lt;/code&gt; and then run the command like &lt;code&gt;% ./process_mdout.perl model1min2.out&lt;/code&gt; or just do &lt;code&gt;% perl process_mdout.perl model1min2.out&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-1523052114589936894?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/1523052114589936894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/1523052114589936894'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2004/10/processmdout-permission-denied.html' title='% process_mdout: Permission denied'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115312793140043814</id><published>2004-05-22T00:00:00.000-07:00</published><updated>2007-10-22T15:36:30.125-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>Early AMBER8 PMEMD bench with AltiVec wrapper.</title><content type='html'>&lt;p&gt;
(originally posted on 05/19 18:32)&lt;br /&gt;
(updated 05/22) Added single precision modification version with vecLib support!&lt;br /&gt;
(updated 05/20) Finally I realized that I didn't successfully link to vecLib for PMEMD. We will see if we can do it later.
&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;  =============================================================================
  "jac" == Joint Amber/Charrm DHFR benchmark.  This is the protein DHFR,
  solvated with TIP3 water, in a periodic box.  There are 23,558 total atoms,
  and PME used with a direct space cutoff of 9 Ang.  This is the benchmark
  in benchmarks/jac subdirectory of the Amber 8 distribution.  Results
  here are for pmemd.

  --------------------------------------------------------------------------------
  name   date      CPU              OS         compiler  npcu    ps per day
  --------------------------------------------------------------------------------
bluefish 12/03 SGI Origin 3800                  f90      2        115
  loyd    4/04 2.4 Ghz PIV Xeon   RH 9          ifc8     2        210
  &lt;span style="color:red;"&gt;apple   5/04   2 Ghz G5        MacOS X 10.3   xlf8.1   2        293 (double)&lt;/span&gt;
  &lt;span style="color:red;"&gt;apple   5/21   2 Ghz G5        MacOS X 10.3   xlf8.1   2        324 (single)&lt;/span&gt;
 unc/duke 4/04 3.2 GHz PIV Xeon  RH E3smp       ifc7     2        330
  &lt;span style="color:red;"&gt;apple   5/21   2 Ghz G5        MacOS X 10.3   xlf8.1   2        344 (single)*&lt;/span&gt;
  yt      2/04 altix/itanium 1.3GHz linux       ifort8   2        465
&lt;/pre&gt;
&lt;ol&gt;Notice:
&lt;li&gt;single precision means partial of the variables in short_ene are real*4.
&lt;li&gt;G5 results were pmemd results.
&lt;li&gt;*: altivec was used.
&lt;li&gt;2 cpu results were done with LAM/MPI library.
&lt;/ol&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115312793140043814?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115312793140043814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115312793140043814'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2004/05/early-amber8-pmemd-bench-with-altivec.html' title='Early AMBER8 PMEMD bench with AltiVec wrapper.'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115311808975493208</id><published>2004-03-31T09:04:00.000-08:00</published><updated>2007-10-22T15:36:30.126-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>AMBER 8 PMEMD Benchmark Done During RECOMB04 Meeting</title><content type='html'>&lt;p&gt;&lt;h1&gt;If you are looking for current AMBER 8 PMEMD benchmark, please &lt;a href="http://amberonmac.blogspot.com/2005/07/amber-8-pmemd-benchmarks-on-xserve-g5.html"&gt;visit here&lt;/a&gt;&lt;/h1&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I always want to do some &lt;a href="http://amber.scripps.edu/amber8.bench1.html"&gt;AMBER 8 benchmark&lt;/a&gt; on Apple's G5 machines, but apparently there is no G5 nearby, *sigh*.&lt;br /&gt;
&lt;br /&gt;
Recently I got a chance to access powermac G5 (sponsored by Apple) in the &lt;a href="http://recomb04.sdsc.edu" title="RECOMB 2004"&gt;RECOMB04&lt;/a&gt;. I wasn't able to run sander on those G5 email console because my old binaries still need IBM's dynamic libraries. Later I finally found the way to build static binary (Yes, I already tried "-Wl,-static".) with xlf 8.1beta on my powerbook. Here is how:
&lt;pre&gt;
1. mkdir /opt/ibmcmp/lib_save/
2. mv /opt/ibmcmp/lib/*.dylib /opt/ibmcmp/lib_save/
3. echo "int mjhsiehkickme(){}" &gt; test.c
4. xlc -c test.c -o test.o
5. ar rvs test.a test.o; ranlib test.a
6. mv test.a /opt/ibmcmp/lib/libxlomp_ser.a
7. Then you now can make a static binary with xlf.

By the way, remember to add this to your shell's environment variables:
setenv XLFRTEOPTS "namelist=old:xrf_messages=no"
&lt;/pre&gt;
I only tested it on jac and gb_mb because there were too many people eager to use these consoles and I still haven't gotten a chance to use it again.&lt;/p&gt;

&lt;pre&gt;=============================================================================
  "jac" == Joint Amber/Charrm DHFR benchmark.  This is the protein DHFR,
  solvated with TIP3 water, in a periodic box.  There are 23,558 total atoms,
  and PME used with a direct space cutoff of 9 Ang.  This is the benchmark
  in benchmarks/jac subdirectory of the Amber 8 distribution.
-------------------------------------------------------------------------------
  name   date      CPU              OS         compiler  npcu    ps per day
-------------------------------------------------------------------------------
RECOMB04  3/31   1.8 Ghz G5   MacOS X 10.3   IBM XLF 8.1b  1       138 (sander)
 mjhsieh  3/18   400 Mhz G4   MacOS X 10.3   IBM XLF 8.1b  1        25 (sander)
 mjhsieh  3/18   400 Mhz G4   MacOS X 10.3   IBM XLF 8.1b  1        26 (pmemd)

============================================================================
  "gb_mb" == Generalized Born myoglobin simulation.  This protein has 2492
  atoms, and is run with a 20 Ang. cutoff and a salt concentration of 0.2 M,
  with nrespa=4 (long range forces computed every 4 steps.)  This is the
  test case in the benchmarks/gb_mb subdirectory of the Amber 8 distribution.
-------------------------------------------------------------------------------
  node-name        CPU                 OS         compiler  npcu  ps-per-day
-------------------------------------------------------------------------------
RECOMB04  3/31   1.8 Ghz G5   MacOS X 10.3   IBM XLF 8.1b  1       184
 mjhsieh  3/18   400 Mhz G4   MacOS X 10.3   IBM XLF 8.1b  1        23

============================================================================
  "fix": This is a factor_ix benchmark, from Bob Duke, also a protein
  solvated with TIP3 water, in a periodic box.  There are 90,906 total atoms,
  and PME used with a direct space cutoff of 8 Ang.  This test is in
  amber8/benchmarks/factor_ix.  This uses dt=0.0015, so the conversion is
  ps-per-day = 129.6/(time-per-step)
-------------------------------------------------------------------------------
  name   date      CPU              OS         compiler  npcu   ps-per-day
-------------------------------------------------------------------------------
 mjhsieh  3/18   400 Mhz G4   MacOS X 10.3   IBM XLF 8.1b  1        10

============================================================================
   "hb": This is a hemoglobin benchmark, also a protein solvated with TIP3
   water, in a periodic box.  There are 44,247 total atoms, and PME used
   with a direct space cutoff of 8 Ang.  This 500-step test is in
   amber8/benchmarks/hb; it uses a truncted octahedral box, and nrespa=2.
-------------------------------------------------------------------------------
  name   date      CPU              OS         compiler  npcu    ps-per-day
-------------------------------------------------------------------------------
 mjhsieh  3/18   400 Mhz G4   MacOS X 10.3   IBM XLF 8.1   1        16
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115311808975493208?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115311808975493208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115311808975493208'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2004/03/amber-8-pmemd-benchmark-done-during.html' title='AMBER 8 PMEMD Benchmark Done During RECOMB04 Meeting'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115311320800053574</id><published>2004-02-19T11:03:00.000-08:00</published><updated>2007-10-22T15:36:30.126-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>Porting resp to MacOS X with plep Source</title><content type='html'>&lt;p&gt;Last night I got an email from &lt;a href="http://www.yorku.ca/yorkweb/index.htm" title="Canada"&gt;York University&lt;/a&gt; asking how to compile resp of AMBER software on their G5. Min, the person who sent the email, was using the MACHINE file I posted on my weblog. Min couldn't use my MACHINE file for compiling resp.&lt;br /&gt;
&lt;br /&gt;
After a hour or so, I figured out some problems and their solutions.&lt;/p&gt;

&lt;p&gt;
Min's error log suggests that neither MACHINE file nor Compile script is working:
&lt;pre&gt;
$ make
cd ../lib ; ./Makelist ../lib/mexit.o ../lib/amopen.o ../lib/lapack.o
make[1]: `mexit.o' is up to date.
make[1]: `amopen.o' is up to date.
./Compile L2 -P -DDPREC -o lapack.o lapack.f
csh: L2: Undefined variable.
make[1]: *** [lapack.o] Error 1
make: *** [libobj] Error 1
&lt;/pre&gt;
Unfortunately, I never used resp command nor ever tried to compile it before. Therefore I need to start from beginning in order to find out what happened. The clue is that Min was using the resp source in plep package of &lt;a href="http://amber.scripps.edu/" title="Assisted Model Building with Energy Refinement"&gt;AMBER&lt;/a&gt;, which is kinda free in the InterNet. After a short google search, I found it's in the &lt;a href="http://amber.scripps.edu/ftp/" title="http://amber.scripps.edu/ftp/"&gt;file repository&lt;/a&gt; of AMBER.&lt;br /&gt;
&lt;br /&gt;
The hierarchy of this distribution of plep is from AMBER 5 but it only includes crucial files. The immediate trouble inside src/ is the directory Machine/, the script "Compile" requires a symbolic linked file call "MACHINE". If you are familiar with HFS+ that MacOS X uses, you probably already know the filesystem is not case-sensitive. Because "MACHINE" is equal to "Machine", we need to rename "Machine/" to "Machines/". Of course, you need to check the "Compile" script and the "MACHINE" files later we'll mention to see if you need to rename the fixed variable.&lt;br /&gt;
&lt;br /&gt;
Then I copy the "Machines/Machine.bsd" file to my customized file, say, "Machines/Machine.macosx" and modify the "Machine.macosx" file. One of the things you need to check is that the C preprocessor is located at "/usr/bin/cpp", not "/lib/cpp" as the old setting suggested. After then, you might need to change f77 to g77 because the c-shell script "Compile" seems to be not recognizing the f77 aliases you might have for your tcsh. Oh, don't forget running this "ln -s Machines/Macine.macosx ./MACHINE".&lt;br /&gt;
&lt;br /&gt;
Another thing that maybe very important is that G5 is a big-endian machine, the related issues is addressed in the "mksrc" file, although we don't need it to compile resp. So you can enter the "resp" directory, and run "make bigsource" command. In this case, the command only generates a file called "resp_all.for" without actually compiling it. You might want to modify the "Makefile" file adding some rules. But right now, you can just use "g77 -O2 resp_all.for -o resp" to create the resp program.&lt;br /&gt;
&lt;br /&gt;
If any of my reader of this blog entry has questions about compiler "g77" or "XLF/XLC", don't ask me, do ask the technical support of Apple or IBM.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Supplemental Materials&lt;/b&gt;:&lt;br /&gt;
1. &lt;a href="http://apple.sysbio.info/~mjhsieh/source/plep_resp.diff" title="diff -ruN"&gt;diff file&lt;/a&gt; between Machine.bsd and Machine.macosx&lt;br /&gt;
2. My result:
&lt;pre&gt;[mjhsieh:plep/src/resp] mjhsieh% make bigsource
SYSDIR=`../sysdir dir` ; cd $SYSDIR ; make sys.f
make[1]: `sys.f' is up to date.
SYSSRC=`../sysdir src` ; ../Compile CPPONLY -o resp_all.f
                 resp.f ../lib/mexit.f ../lib/amopen.f ../lib/lapack.f $SYSSRC ;
                 ../Compile L1 -P resp_all.f ;
                ../Compile LOAD -o resp resp_all.o
Making source: machine is Generic BSD Unix
cat resp.f | /usr/bin/cpp -P -I/mjhsieh/plep/src/lib
     -DBSD -DISTAR2 -DREGNML -DEWALD   &gt;&gt;  resp_all.f
cat ../lib/mexit.f | /usr/bin/cpp -P -I/mjhsieh/plep/src/lib
     -DBSD -DISTAR2 -DREGNML -DEWALD   &gt;&gt;  resp_all.f
cat ../lib/amopen.f | /usr/bin/cpp -P -I/mjhsieh/plep/src/lib
     -DBSD -DISTAR2 -DREGNML -DEWALD   &gt;&gt;  resp_all.f
cat ../lib/lapack.f | /usr/bin/cpp -P -I/mjhsieh/plep/src/lib
     -DBSD -DISTAR2 -DREGNML -DEWALD   &gt;&gt;  resp_all.f
cat /mjhsieh/plep/src/Machines/bsd/sys.f | /usr/bin/cpp -P -I/mjhsieh/plep/src/lib
     -DBSD -DISTAR2 -DREGNML -DEWALD   &gt;&gt;  resp_all.f
Made source for machine: Generic BSD Unix
cat resp_all.f | /usr/bin/cpp -I/mjhsieh/plep/src/lib -P
     -DBSD -DISTAR2 -DREGNML -DEWALD   &gt; _resp_all_.f
g77 -c _resp_all_.f
g77 -o resp resp_all.o
[mjhsieh:plep/src/resp] mjhsieh% ls 
0README     files.h     resp*       resp_all.f
Makefile    readit.f    resp.f      resp_all.o
&lt;/pre&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115311320800053574?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115311320800053574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115311320800053574'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2004/02/porting-resp-to-macos-x-with-plep.html' title='Porting resp to MacOS X with plep Source'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115252732167863267</id><published>2003-09-11T21:09:00.000-07:00</published><updated>2007-10-22T15:36:30.127-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><title type='text'>DHFR benchmark of Amber 7 on Macintosh</title><content type='html'>&lt;p&gt;According the method came with the amber package, I did two benchmarks, this time it would be more serious than &lt;a href="http://amberonmac.blogspot.com/2003/09/amber7-xlf-performance-on-powerbook-g4.html" title="XLF performance on powerbook G4, PowerMac G5 and Pentium4"&gt;previous one&lt;/a&gt; and also comparable to &lt;a href="http://amber.scripps.edu/amber7.bench4.html"&gt;Amber 7 Benckmarks&lt;/a&gt; page.&lt;/p&gt;

&lt;p&gt;The measurement should be more accurate because the time step is longer. Please check the table below.&lt;/p&gt;

Special thank to professor Eric Mockensturm at Penn State University for his help on G5 machine.
&lt;pre&gt;
=============================================================================
"jac" == Joint Amber/Charrm DHFR benchmark.  This is the protein DHFR,
solvated with TIP3 water, in a periodic box.  There are 23,558 total atoms,
and PME used with a direct space cutoff of 9 Ang.  This is the benchmark
in benchmarks/jac subdirectory of the Amber 7 distribution.

--------------------------------------------------------------------------------
node-name        CPU                 OS         compiler  npcu   time-per-step
--------------------------------------------------------------------------------
mjhsieh      400 MHZ G4            MacOS X      g77 3.4    1       5.644
Prof. E. M.    2 GHZ G5 (dual)     MacOS X      g77 3.4    1       1.275
Prof. E. M.    2 GHZ G5 (dual)     MacOS X      XLF 8.1b   1       0.777

=============================================================================
"gb_mb" == Generalized Born myoglobin simulation.  This protein has 2492
atoms, and is run with a 20 Ang. cutoff and a salt concentration of 0.2 M,
with nrespa=4 (long range forces computed every 4 steps.)  This is the
test case in the benchmarks/gb_mb subdirectory of the Amber 7 distribution.

--------------------------------------------------------------------------------
node-name        CPU                 OS         compiler  npcu   time-per-step
--------------------------------------------------------------------------------
mjhsieh      400 MHZ G4            MacOS X      g77 3.4    1       4.857
Prof. E. M.    2 GHZ G5 (dual)     MacOS X      g77 3.4    1       0.697
Prof. E. M.    2 GHZ G5 (dual)     MacOS X      XLF 8.1b   1       0.543
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115252732167863267?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115252732167863267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115252732167863267'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2003/09/dhfr-benchmark-of-amber-7-on-macintosh.html' title='DHFR benchmark of Amber 7 on Macintosh'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-25770801.post-115252584244536797</id><published>2003-09-10T00:45:00.000-07:00</published><updated>2007-10-22T15:36:49.358-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='amber7'/><title type='text'>AMBER7: XLF performance on powerbook G4, PowerMac G5 and Pentium4</title><content type='html'>&lt;p&gt;I did a performance comparison of AMBER 7 main program sander compiled with GNU fortran compiler (g77 3.1) and IBM XLF v8.1beta on my powerbook G4-400 and from other machines including new G5. &lt;span style="color:red;"&gt;WARNING: the time measured may not be accuray and should be just for your information.&lt;/span&gt; (I don't have time to use longer time steps.)&lt;/p&gt;

&lt;h3&gt;Speed comparisons (the more the better)&lt;/h3&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; xlf (G4-400) = 1 &lt;b&gt;:&lt;/b&gt; 1.337&lt;br /&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; ifc (P4-1.7G) = 1 &lt;b&gt;:&lt;/b&gt; 3.213&lt;br /&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; ifc (Opteron-1.4G) = 1 &lt;b&gt;:&lt;/b&gt; 4.473&lt;br /&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; ifc (Xeon-2G) = 1 &lt;b&gt;:&lt;/b&gt; 4.562&lt;br /&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; g77 (G5-2G) = 1 &lt;b&gt;:&lt;/b&gt; 4.808&lt;br /&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; ifc (P4-2.4G) = 1 &lt;b&gt;:&lt;/b&gt; 5.810&lt;br /&gt;
g77 (G4-400) &lt;b&gt;:&lt;/b&gt; xlf (G5-2G) = 1 &lt;b&gt;:&lt;/b&gt; 7.118&lt;br /&gt;

&lt;p&gt;The binaries on G4-400 are not optimized for vecLib framework on BLAS and LAPACK, but it seems that sander uses very few BLAS and LAPACK functions. It doesn't make any difference in running time on G4 and G5 after replacing BLAS/LAPACK with vecLib. Advanced analysis of the code would be necessary if we want to improve it.&lt;/&gt;

&lt;p&gt;Hopefully Apple can have time to help us to optimize the sander code.&lt;/p&gt;

&lt;h3&gt;Technical Details&lt;/h3&gt;

g77: &lt;a href="http://apple.sysbio.info/~mjhsieh/source/Machine.darwin.g77" title="Option"&gt;MACHINE file&lt;/a&gt; (no altivec)&lt;br /&gt;
XLF: &lt;a href="http://apple.sysbio.info/~mjhsieh/source/Machine.darwin.xlf" title="Option"&gt;MACHINE file for g4&lt;/a&gt; and &lt;a href="/~mjhsieh/source/Machine.darwin_g5.xlf" title="Option"&gt;MACHINE file for g5&lt;/a&gt;. We also need to &lt;span style="color:red;"&gt;setenv XLFRTEOPTS NAMELIST=OLD&lt;/span&gt; in order to run sander.&lt;br /&gt;
And, of course, the &lt;a href="http://apple.sysbio.info/~mjhsieh/source/Machine.ifc_p4" title="Option"&gt;MACHINE file&lt;/a&gt; of Intel compiler optimized for Petium4/Opteron.&lt;br /&gt;
&lt;br /&gt;
Molecular dynamics Input file: &lt;a href="http://apple.sysbio.info/~mjhsieh/source/benchmd.in" title="input file"&gt;benchmd.in&lt;/a&gt;&lt;br /&gt;

&lt;pre&gt;
g77_g4_0.4.out:       352.98 (G4-400)
xlf_g4_0.4.out:       245.16 (G4-400)
ifc_p4_1.7.out:       102.03 (P4-1.7G)
ifc_p4_2.4.out:       60.75 (P4-2.4G)
g77_g5.out:           73.42 (G5-2Gx2 on single cpu)
xlf_g5_2.out:         54.79 (G5-2Gx2 on single cpu)
xlf_g5_2_unroll.out:  49.59 (G5-2Gx2 on single cpu)
ifc_opteron_1.4.out:  78.91 (Opteron-1.4Gx2 on single cpu)
ifc_xeon_2.out:       77.37 (Xeon-2Gx2 on single cpu)
&lt;/pre&gt;

Speed is refered to be inverse of time in seconds.&lt;br /&gt;

Special thank to professor Eric Mockensturm at Penn State University for his help on G5 machine.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25770801-115252584244536797?l=amberonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115252584244536797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25770801/posts/default/115252584244536797'/><link rel='alternate' type='text/html' href='http://amberonmac.blogspot.com/2003/09/amber7-xlf-performance-on-powerbook-g4.html' title='AMBER7: XLF performance on powerbook G4, PowerMac G5 and Pentium4'/><author><name>Mengjuei Hsieh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_83P-OanxqzA/Sqsv9ootB0I/AAAAAAAAAYc/r9UAmLWG3rM/S220/spinner.png'/></author></entry></feed>
