<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=Applications_Environment%2Fgromacs</id>
	<title>Applications Environment/gromacs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=Applications_Environment%2Fgromacs"/>
	<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=Applications_Environment/gromacs&amp;action=history"/>
	<updated>2026-05-13T16:31:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?title=Applications_Environment/gromacs&amp;diff=126&amp;oldid=prev</id>
		<title>James: Text replacement - &quot;[pP][bB][sS]&quot; to &quot;SLURM&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=Applications_Environment/gromacs&amp;diff=126&amp;oldid=prev"/>
		<updated>2022-10-27T19:33:39Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;[pP][bB][sS]&amp;quot; to &amp;quot;SLURM&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:33, 27 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For meaning and proper choice of values in &amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt;&amp;lt;font color= red&amp;gt;&amp;lt;b&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font color&amp;gt; and &amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt;&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font color&amp;gt; fields please read the section [[Submitting_Jobs|“Writing a job submit script.”]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For meaning and proper choice of values in &amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt;&amp;lt;font color= red&amp;gt;&amp;lt;b&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font color&amp;gt; and &amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt;&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font color&amp;gt; fields please read the section [[Submitting_Jobs|“Writing a job submit script.”]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Example:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;  The following example &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PBS &lt;/del&gt;scripts are described below: (1) General Script Template (2) Penzias (a) 4 cpus and 1 gpu, (b) 4 cpus and 2 gpus (c) 2 mpi threads per gpu and a submit script for (3) Andy.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Example:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;  The following example &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SLURM &lt;/ins&gt;scripts are described below: (1) General Script Template (2) Penzias (a) 4 cpus and 1 gpu, (b) 4 cpus and 2 gpus (c) 2 mpi threads per gpu and a submit script for (3) Andy.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==General submit script template==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==General submit script template==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot;&gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==PENZIAS==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==PENZIAS==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====A. Example Submit Script: 4 CPUs and 1 GPU=====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====A. Example Submit Script: 4 CPUs and 1 GPU=====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the script below, the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PBS &lt;/del&gt;scheduler is asked to schedule 4 CPUs and 1 GPU for a job.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the script below, the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SLURM &lt;/ins&gt;scheduler is asked to schedule 4 CPUs and 1 GPU for a job.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On PENZIAS, there are 2 versions of GROMACS which are GPU enabled: GROMACS 5.X and GROMACS 4.X.  The 5.x uses more advanced communication protocol between GPU and has improved CPU performance.  The following &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PBS &lt;/del&gt;script can be used as a model on how to run a MPI parallel GROMACS 5.X job with GPUs on PENZIAS. First, load the module for GROMACS with command:  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On PENZIAS, there are 2 versions of GROMACS which are GPU enabled: GROMACS 5.X and GROMACS 4.X.  The 5.x uses more advanced communication protocol between GPU and has improved CPU performance.  The following &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SLURM &lt;/ins&gt;script can be used as a model on how to run a MPI parallel GROMACS 5.X job with GPUs on PENZIAS. First, load the module for GROMACS with command:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  module load gromacs/5.0.4&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  module load gromacs/5.0.4&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l121&quot;&gt;Line 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==APPEL==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==APPEL==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PBS &lt;/del&gt;script can be used as a model how to run MPI only simulations with GROMACS 4.X on ANDY. First load the module for the GROMACS with the command:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SLURM &lt;/ins&gt;script can be used as a model how to run MPI only simulations with GROMACS 4.X on ANDY. First load the module for the GROMACS with the command:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  module load gromacs  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  module load gromacs  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PBS &lt;/del&gt;script is as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SLURM &lt;/ins&gt;script is as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>James</name></author>
	</entry>
	<entry>
		<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?title=Applications_Environment/gromacs&amp;diff=58&amp;oldid=prev</id>
		<title>James: Created page with &quot;&lt;h1&gt;&lt;b&gt;GROMACS&lt;/b&gt;&lt;/h1&gt; &lt;br&gt; __TOC__ &lt;br&gt; &lt;font color=red&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/font color&gt; &lt;b&gt;&lt;i&gt;GROMACS&lt;/i&gt;&lt;/b&gt; is a highly optimized, fast, Molecular Dynamics (MD) simulation package primarily used for research on proteins, lipids, and polymers. The package can also be applied to a wide variety of chemical and biological research questions.   &lt;font color=red&gt;&lt;b&gt;Additional Notes:&lt;/b&gt;&lt;/font color&gt;  &lt;b&gt;&lt;i&gt;GROMACS 5.X&lt;/i&gt;&lt;/b&gt; represents the newest version of GROMACS and ha...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=Applications_Environment/gromacs&amp;diff=58&amp;oldid=prev"/>
		<updated>2022-10-17T17:43:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;GROMACS&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt; &amp;lt;br&amp;gt; __TOC__ &amp;lt;br&amp;gt; &amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Description:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;GROMACS&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; is a highly optimized, fast, Molecular Dynamics (MD) simulation package primarily used for research on proteins, lipids, and polymers. The package can also be applied to a wide variety of chemical and biological research questions.   &amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Additional Notes:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;  &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;GROMACS 5.X&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; represents the newest version of GROMACS and ha...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;GROMACS&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Description:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;GROMACS&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; is a highly optimized, fast, Molecular Dynamics (MD) simulation package primarily used for research on proteins, lipids, and polymers. The package can also be applied to a wide variety of chemical and biological research questions. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Additional Notes:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;  &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;GROMACS 5.X&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; represents the newest version of GROMACS and has been optimized for both parallel MPI and GPU performance.  This version is installed on PENZIAS and is recommended. GROMACS 4.X is also installed. There are significant differences between versions of GROMACS, which may affect the simulation process.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Availability:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; PENZIAS and APPEL&lt;br /&gt;
::&amp;lt;font color=black&amp;gt;&amp;lt;b&amp;gt;MPI:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; Yes&lt;br /&gt;
::&amp;lt;font color=black&amp;gt;&amp;lt;b&amp;gt;SMP:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; No&lt;br /&gt;
::&amp;lt;font color=black&amp;gt;&amp;lt;b&amp;gt;GPU:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; Yes on PENZIAS, No on APPEL&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Module file:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; gromacs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Citation:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; Include in published paper the following citation regarding use of &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;GROMACS&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;:&lt;br /&gt;
1. Berendsen, et al. (1995) Comp. Phys. Comm. 91: 43-56, Lindahl, et al. (2001) J. Mol. Model. 7: 306-317, Van der Spoel, et al. (2005) J. Comput. Chem. 26: 1701-1718, Hess, et al. (2008) J. Chem. Theory Comput. 4: 435-447, Pronk, et al. (2013) Bioinformatics 29 845-854.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Documentation:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt; http://www.gromacs.org/Documentation&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Tutorials:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;  http://www.gromacs.org/Documentation/Tutorials&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Related Packages:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
::LAMMPS&lt;br /&gt;
::NWChem&lt;br /&gt;
::TINKER  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;General notes of use: &amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
The GROMACS package comes with a set of tools, which can be used to prepare the molecular system for simulation. genbox tool is no longer available in GROMACS 5.X. Also, the tools in GROMACS 5.X cannot be used directly, (as they were with GROMACS 4.X), but via wrapper called gmx (i.e. gmx pdb2gmx). Users should consult the tutorial(s)/documentation specific for the particular version.  Also there are significant changes in algorithms used in GROMACS 5.X vs. those in GROMACS 4.X.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;GROMACS parallelization schemes:	&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
Version 5.X on PENZIAS utilizes MPI parallelism, OpenMP parallelism and GPU-direct mechanism (P2P) to run simulations across several GPUs from different nodes. GROMACS 4.X installed on ANDY utilizes OpenMP (in node parallelism, SMP) and MPI parallelism. The GPU enabled 4.X version on PENZIAS utilizes MPI and OpenMP parallelism as well, but also uses GPUs as accelerator. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Use of GPUs: &amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
In the GPU enabled version of GROMACS, the Particle Mesh Ewald (PME) calculations are always done on CPU, while particle-particle (PP) interactions are done on GPU. As such, the optimal ratio between number of CPUs and number of GPUs depends on type of molecular system simulated. For X86_64 architecture the recommended number of atoms per CPU is typically about 100 to 150. As such, and as a rule of thumb, for a computer with K20 GPUs the ratio between the number of CPUs and GPUs should be at least 4:1, but the optimal number depends on molecular system simulated.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Use: &amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
&amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
PENZIAS:&lt;br /&gt;
 module load gromacs/&amp;lt;font color=red&amp;gt;x.x.x&amp;lt;/font color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ANDY:&lt;br /&gt;
 module load gromacs&lt;br /&gt;
 &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For meaning and proper choice of values in &amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt;&amp;lt;font color= red&amp;gt;&amp;lt;b&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font color&amp;gt; and &amp;lt;font face=&amp;quot;courier&amp;quot;&amp;gt;&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font color&amp;gt; fields please read the section [[Submitting_Jobs|“Writing a job submit script.”]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;Example:&amp;lt;/b&amp;gt;&amp;lt;/font color&amp;gt;  The following example PBS scripts are described below: (1) General Script Template (2) Penzias (a) 4 cpus and 1 gpu, (b) 4 cpus and 2 gpus (c) 2 mpi threads per gpu and a submit script for (3) Andy.&lt;br /&gt;
==General submit script template==&lt;br /&gt;
&lt;br /&gt;
The sample submit script should be modified based upon sysem (PENZIAS or ANDY) and desired CPU/GPU usage.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash &lt;br /&gt;
 #SBATCH --job-name water_job &lt;br /&gt;
 #SBATCH --partition production &lt;br /&gt;
 #SBATCH --nodes=&amp;lt;font color=red&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --ntasks=&amp;lt;font color=red&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --gres=gpu=&amp;lt;font color=red&amp;gt;&amp;lt;gpus&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --mem=&amp;lt;font color=red&amp;gt;&amp;lt;memory_mb&amp;gt;&amp;lt;/font color&amp;gt; &lt;br /&gt;
    &lt;br /&gt;
 &lt;br /&gt;
 # You must explicitly change to your working directory in SLURM &lt;br /&gt;
 &lt;br /&gt;
 cd $SLURM_SUBMIT_DIR  &lt;br /&gt;
 &lt;br /&gt;
 mpirun -np &amp;lt;font color=red&amp;gt;&amp;lt;chunks*cpus&amp;gt;&amp;lt;/font color&amp;gt; gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0 &amp;gt; water.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
==PENZIAS==&lt;br /&gt;
=====A. Example Submit Script: 4 CPUs and 1 GPU=====&lt;br /&gt;
In the script below, the PBS scheduler is asked to schedule 4 CPUs and 1 GPU for a job. &lt;br /&gt;
&lt;br /&gt;
On PENZIAS, there are 2 versions of GROMACS which are GPU enabled: GROMACS 5.X and GROMACS 4.X.  The 5.x uses more advanced communication protocol between GPU and has improved CPU performance.  The following PBS script can be used as a model on how to run a MPI parallel GROMACS 5.X job with GPUs on PENZIAS. First, load the module for GROMACS with command: &lt;br /&gt;
 module load gromacs/5.0.4&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash &lt;br /&gt;
 #SBATCH --job-name water_job &lt;br /&gt;
 #SBATCH --partition production &lt;br /&gt;
 #SBATCH --nodes=&amp;lt;font color=red&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --ntasks=&amp;lt;font color=red&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --gres=gpu:1&lt;br /&gt;
 #SBATCH --mem=3660mb   &lt;br /&gt;
 &lt;br /&gt;
 # You must explicitly change to your working directory in SLURM &lt;br /&gt;
 &lt;br /&gt;
 cd $SLURM_SUBMIT_DIR  &lt;br /&gt;
 &lt;br /&gt;
 mpirun -np 4 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0 &amp;gt; water.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
=====B. Example Submit Script: 4 CPUs and 2 GPUs=====&lt;br /&gt;
On PENZIAS, each virtual node has 2 GPUs. The following script shows how to use 2 GPUs: &lt;br /&gt;
 &lt;br /&gt;
 #!/bin/bash &lt;br /&gt;
 #SBATCH --job-name water_job &lt;br /&gt;
 #SBATCH --partition production &lt;br /&gt;
 #SBATCH --nodes=&amp;lt;font color=red&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --ntasks=&amp;lt;font color=red&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --gres=gpu:1&lt;br /&gt;
 #SBATCH --mem=3660 &lt;br /&gt;
 &lt;br /&gt;
 cd $SLURM_SUBMIT_DIR   &lt;br /&gt;
 &lt;br /&gt;
 mpirun -np 32 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 01 &amp;gt; water.out 2&amp;gt;&amp;amp;1 &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The above script will allocate 32 CPUs and 8 GPUs across several nodes.&lt;br /&gt;
&lt;br /&gt;
=====C. Example Submit Script: 2 MPI threads per GPU=====&lt;br /&gt;
For some molecular systems is beneficial to submit two MPI threads per GPU. On PENZIAS that can be achieved with small change in above script in the field of –gpu_id (i.e., adding 0011):&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash &lt;br /&gt;
 #SBATCH --job-name water_job &lt;br /&gt;
 #SBATCH --partition production &lt;br /&gt;
 #SBATCH --nodes=&amp;lt;font color=red&amp;gt;&amp;lt;chunks&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --ntasks=&amp;lt;font color=red&amp;gt;&amp;lt;cpus&amp;gt;&amp;lt;/font color&amp;gt;&lt;br /&gt;
 #SBATCH --gres=gpu:1&lt;br /&gt;
 #SBATCH --mem=3660 &lt;br /&gt;
 &lt;br /&gt;
 cd $SLURM_SUBMIT_DIR   &lt;br /&gt;
 &lt;br /&gt;
 mpirun -np 32 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0011 &amp;gt; water.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
==APPEL==&lt;br /&gt;
The following PBS script can be used as a model how to run MPI only simulations with GROMACS 4.X on ANDY. First load the module for the GROMACS with the command:&lt;br /&gt;
 module load gromacs &lt;br /&gt;
&lt;br /&gt;
The PBS script is as follows:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash &lt;br /&gt;
 #SBATCH --job-name GRMX_32bit &lt;br /&gt;
 #SBATCH --partition production_qdr &lt;br /&gt;
 #SBATCH --nodes=16&lt;br /&gt;
 #SBATCH --ntasks&lt;br /&gt;
 #SBATCH --mem=2880 &lt;br /&gt;
   &lt;br /&gt;
 &lt;br /&gt;
 # You must explicitly change to your working directory in SLURM &lt;br /&gt;
 &lt;br /&gt;
 cd $SLURM_SUBMIT_DIR   &lt;br /&gt;
  &lt;br /&gt;
 &lt;br /&gt;
 mpirun -np 16 mdrun_mpi -px -pf -s md_para.tpr -o md_para.trr -c md_para.gro -e md_para.edr  -g md_para.log &amp;gt; GRMX_32bit.out 2&amp;gt;&amp;amp;1 &lt;br /&gt;
&lt;br /&gt;
In the above example, the topology file (.tpr), trajectory file (.trr) coordinates file (.gro) etc. are all prepared with GROMACS tools (not shown here).&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
</feed>