<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=Installing_GROMACS_on_Clust</id>
	<title>Installing GROMACS on Clust - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=Installing_GROMACS_on_Clust"/>
	<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Installing_GROMACS_on_Clust&amp;action=history"/>
	<updated>2026-04-12T04:41:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Installing_GROMACS_on_Clust&amp;diff=1250&amp;oldid=prev</id>
		<title>Adk44: Created page with &quot;* Download GMX (gromacs-4.5.4.tar.gz [http://www.gromacs.org/Downloads]) and FFTW  ( fftw-3.2.2.tar.gz [http://www.fftw.org/download.html]) source codes and extract in ~/SW...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Installing_GROMACS_on_Clust&amp;diff=1250&amp;oldid=prev"/>
		<updated>2019-05-13T10:38:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Download GMX (gromacs-4.5.4.tar.gz [http://www.gromacs.org/Downloads]) and FFTW  ( fftw-3.2.2.tar.gz [http://www.fftw.org/download.html]) source codes and extract in ~/SW...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Download GMX (gromacs-4.5.4.tar.gz [http://www.gromacs.org/Downloads]) and FFTW  ( fftw-3.2.2.tar.gz [http://www.fftw.org/download.html]) source codes and extract in ~/SW &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;FFTW 3.2.2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/SW/fftw-3.2.2 &lt;br /&gt;
./configure --prefix=/home/ss2029/SWins/fftw --enable-threads --enable-shared&lt;br /&gt;
make &lt;br /&gt;
make install &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
GMX installation later fails if &amp;quot;--enable-shared&amp;quot; flag is not used.  &lt;br /&gt;
&lt;br /&gt;
Following files should be created in ~/SWins/fftw/lib:&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
~/SWins/fftw/lib&amp;gt; ls&lt;br /&gt;
libfftw3.a   libfftw3.so    libfftw3.so.3.2.4   libfftw3_threads.la  libfftw3_threads.so.3      pkgconfig&lt;br /&gt;
libfftw3.la  libfftw3.so.3  libfftw3_threads.a  libfftw3_threads.so  libfftw3_threads.so.3.2.4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GROMACS 4.5.4&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Set environment variables for configure stage of GMX&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CPPFLAGS=&amp;quot;-I/home/ss2029/SWins/fftw/include&amp;quot;&lt;br /&gt;
export LDFLAGS=&amp;quot;-L/home/ss2029/SWins/fftw/lib&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A little comment here:--[[User:Vr274|Vr274]] 17:03, 28 October 2011 (UTC)&lt;br /&gt;
The cleaner solution instead of manually specifying the CPPFLAGS/LDFLAGS  is to add the PKG_CONFIG_PATH&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  export PKG_CONFIG_PATH=&amp;quot;/home/ss2029/SWins/fftw/lib/pkgconfig:$PKG_CONFIG_PATH&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
That also resolves the dependencies of fftw3 correctly. Check whether everything is correct by&lt;br /&gt;
  pkg-config --libs fftw3&lt;br /&gt;
Should list the correct path.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install serial version&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
cd ~/SW/gromacs-4.5.4  &lt;br /&gt;
./configure --prefix=/home/ss2029/SWins/GMX454 --disable-float --without-x --with-fft=fftw3&lt;br /&gt;
make &lt;br /&gt;
make install &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;quot;--disable-float&amp;quot; installs in double precision.  &lt;br /&gt;
If all went well, apart from a number of utility programs with prefix &amp;quot;g_&amp;quot;, you should see &amp;quot;mdrun_d&amp;quot; in ~/SWins/GMX454/bin which is the main MD engine.   &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install MPI version&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
MPI is used only by the MD engine, not by the utility programs. Following just recompiles mdrun with MPI. &lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
cd ~/SW/gromacs-4.5.4  &lt;br /&gt;
module load mpi/openmpi/64/intel10/1.2.6&lt;br /&gt;
./configure --prefix=/home/ss2029/SWins/GMX454 --disable-float --enable-mpi --without-x --program-suffix=_mpi –with-fft=fftw3&lt;br /&gt;
make mdrun &lt;br /&gt;
make install-mdrun&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Look for &amp;quot;mdrun_mpi&amp;quot; in ~/SWins/GMX454/bin.&lt;br /&gt;
&lt;br /&gt;
Note the MPI version loaded. Compilation failed with &amp;quot;mpi/openmpi/64/pgi71/1.2.6&amp;quot; and &amp;quot;mpi/mpich/64/gnu_/1.2.6&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
The version of MPI loaded during installation must be loaded before every execution of mdrun_mpi. &lt;br /&gt;
&lt;br /&gt;
I will shortly post some sample input/output to test the executables. &lt;br /&gt;
&lt;br /&gt;
All set! &lt;br /&gt;
&lt;br /&gt;
Some good tutorials to get started:&lt;br /&gt;
&lt;br /&gt;
http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin/gmx-tutorials&lt;br /&gt;
&lt;br /&gt;
http://www.gromacs.org/Documentation/Tutorials&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Ss2029|Ss2029]] 11:19, 3 May 2011 (UTC)&lt;/div&gt;</summary>
		<author><name>Adk44</name></author>
	</entry>
</feed>