<?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=IMA2</id>
	<title>IMA2 - 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=IMA2"/>
	<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=IMA2&amp;action=history"/>
	<updated>2026-05-18T08:22:56Z</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=IMA2&amp;diff=89&amp;oldid=prev</id>
		<title>James: Created page with &quot;IMa2 is a serial program that is currently installed on ANDY at the CUNY HPC Center. It requires an input file and potentially several additional data files to run.  Here we provide a script that will run the test input program supplied by the authors, &#039;ima2_testinput.u&#039;. Completing this run may also require the prior file (&#039;ima2_priorfile_4pops.txt&#039;) and the nested models file (&#039;ima2_all_nested_models_2_pops.txt&#039;).  All these files can be copied out of the IMa2 installa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=IMA2&amp;diff=89&amp;oldid=prev"/>
		<updated>2022-10-20T20:07:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;IMa2 is a serial program that is currently installed on ANDY at the CUNY HPC Center. It requires an input file and potentially several additional data files to run.  Here we provide a script that will run the test input program supplied by the authors, &amp;#039;ima2_testinput.u&amp;#039;. Completing this run may also require the prior file (&amp;#039;ima2_priorfile_4pops.txt&amp;#039;) and the nested models file (&amp;#039;ima2_all_nested_models_2_pops.txt&amp;#039;).  All these files can be copied out of the IMa2 installa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;IMa2 is a serial program that is currently installed on ANDY at the CUNY HPC Center. It requires an input file and potentially several additional data files to run.  Here we provide a script&lt;br /&gt;
that will run the test input program supplied by the authors, &amp;#039;ima2_testinput.u&amp;#039;. Completing this run may also require the prior file (&amp;#039;ima2_priorfile_4pops.txt&amp;#039;) and the nested models file (&amp;#039;ima2_all_nested_models_2_pops.txt&amp;#039;).  All these files can be copied out of the IMa2 installation examples directory, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /share/apps/ima2/default/examples/ima2_testinput.u .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A working SLURM batch script that will complete an IMa2 run is presented here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --partition production&lt;br /&gt;
#SBATCH --job-name IMa2_serial&lt;br /&gt;
#SBATCH --nodes=1&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Find out name of master execution host (compute node)&lt;br /&gt;
echo -n &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SLURM Master compute node is: &amp;quot;&lt;br /&gt;
hostname&lt;br /&gt;
&lt;br /&gt;
# You must explicitly change to the working directory in SLURM&lt;br /&gt;
cd $SLURM_SUBMIT_DIR&lt;br /&gt;
&lt;br /&gt;
# Point to the execution directory to run&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Begin IMa2 Serial Run ...&amp;quot;&lt;br /&gt;
echo &amp;quot;&amp;quot;&lt;br /&gt;
/share/apps/ima2/default/bin/IMa2 -i ima2_testinput.u -o ima2_testoutput.out -q2 -m1 -t3 -b10000 -l100&lt;br /&gt;
echo &amp;quot;&amp;quot;&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; End   IMa2 Serial Run ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be dropped into a file (say &amp;#039;ima2_serial.job), and run with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub ima2_serial.job&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should take less than a few minutes to run and will produce SLURM output and error files beginning&lt;br /&gt;
with the job name &amp;#039;IMA2_serial&amp;#039;.  It also produces IMa2&amp;#039;s own output files. Details on the meaning&lt;br /&gt;
for the SLURM script are covered below in the SLURM section.  The most important lines are the &amp;#039;#SBATCH --nodes=1 ntasks=1 mem=1920&amp;#039;.  The first instructs SLURM to select 1 resource &amp;#039;chunk&amp;#039; with 1&lt;br /&gt;
processor (core) and 1,920 MBs of memory in it for the job.  The second instructs SLURM to place&lt;br /&gt;
this job wherever the least used resources are found (freely).  The compute node that it finally&lt;br /&gt;
selects to run your job will be printed in the SLURM output file by the &amp;#039;hostname&amp;#039; command.&lt;br /&gt;
&lt;br /&gt;
Please take note of the IMa2 options used here.  Details on each can be found in the IMa2 manual&lt;br /&gt;
referenced above.&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
</feed>