<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www-mobile.ecs.soton.ac.uk"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Southampton Wireless Group - Resources</title>
 <link>https://www-mobile.ecs.soton.ac.uk/taxonomy/term/13</link>
 <description></description>
 <language>en</language>
<item>
 <title>Using Matlab on Lyceum4</title>
 <link>https://www-mobile.ecs.soton.ac.uk/resources/lyceum/matlab</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://hpc.soton.ac.uk/redmine/projects/iridis-4-support/wiki&quot;&gt;Lyceum4&lt;/a&gt;  is a cluster of Linux computers that students can use in their &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/&amp;amp;http://www.mathworks.com/products/matlab/&quot;&gt;Matlab&lt;/a&gt; projects. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1a. Uploads, downloads and logging in on Linux or Mac computers&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;You can upload a file by opening a terminal program and using the command&lt;/p&gt;
&lt;pre&gt;scp &amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;YourUserName&amp;gt;@iridis4_a.soton.ac.uk:&amp;lt;DestinationPath&amp;amp;FileName&amp;gt;&lt;/pre&gt;&lt;p&gt;Note that it is your iSolutions password that you need to input when prompted. For example, I might type &lt;/p&gt;
&lt;pre&gt;scp main.m rm@iridis4_a.soton.ac.uk:MySimulations/BPSKinAWGN/ &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;You can download using the command  &lt;/p&gt;
&lt;pre&gt;scp &amp;lt;YourUserName&amp;gt;@iridis4_a.soton.ac.uk:&amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;DestinationPath&amp;amp;FileName&amp;gt;  &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;and you can log in using the command&lt;/p&gt;
&lt;pre&gt;ssh -X &amp;lt;YourUserName&amp;gt;@iridis4_a.soton.ac.uk&lt;/pre&gt;&lt;p&gt;Again, it is your iSolutions password that you need to input when prompted.  &lt;br /&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1b. Uploads, downloads and logging in&lt;/strong&gt;&lt;strong&gt; on Windows computers&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;You can upload and download files using &lt;a href=&quot;http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe&quot;&gt;PSCP&lt;/a&gt;. You should save this to your My Documents folder. Next, you should open a command window by clicking Start, then Run... and then typing&lt;/p&gt;
&lt;pre&gt;cmd&lt;/pre&gt;&lt;p&gt; You can change to your My Documents folder by typing &lt;/p&gt;
&lt;pre&gt;cd &quot;My Documents&quot;&lt;/pre&gt;&lt;p&gt;You can upload a file by typing&lt;/p&gt;
&lt;pre&gt;pscp &amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;YourUserName&amp;gt;@iridis4_a.soton.ac.uk:&amp;lt;DestinationPath&amp;amp;FileName&amp;gt;&lt;/pre&gt;&lt;p&gt;Note that it is your iSolutions password that you need to input when prompted. For example, I might type &lt;/p&gt;
&lt;pre&gt;pscp main.cpp rm@iridis4_a.soton.ac.uk:MySimulations/BPSKinAWGN/ &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;You can download using the command  &lt;/p&gt;
&lt;pre&gt;pscp &amp;lt;YourUserName&amp;gt;@iridis4_a.soton.ac.uk:&amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;DestinationPath&amp;amp;FileName&amp;gt;  &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;In order to log in to Lyceum4, you need to save &lt;a href=&quot;http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe&quot;&gt;PuTTY&lt;/a&gt;  to your My Documents folder. From within the My Documents folder in the command window, you should type &lt;/p&gt;
&lt;pre&gt;putty &amp;lt;YourUserName&amp;gt;@iridis4_a.soton.ac.uk&lt;/pre&gt;&lt;p&gt;Again, it is your iSolutions password that you need to input when prompted.  You can find out more about PuTTY and PSCP &lt;a href=&quot;http://www.chiark.greenend.org.uk/~sgtatham/putty/&quot;&gt;here&lt;/a&gt;.  &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Installing the Matlab project template on Lyceum4&lt;/strong&gt;
&lt;/p&gt;&lt;p&gt;The first step is to log in to Lyceum4 and then download the &lt;a href=&quot;http://users.ecs.soton.ac.uk/rm/MatlabLyceumProject.tgz&quot;&gt;Matlab project template&lt;/a&gt;. You can do this by giving Lyceum4 the command&lt;/p&gt;
&lt;pre&gt;wget http://users.ecs.soton.ac.uk/rm/MatlabLyceumProject.tgz&lt;/pre&gt;&lt;p&gt;You can extract the template by typing &lt;/p&gt;
&lt;pre&gt;tar -xzvf MatlabLyceumProject.tgz&lt;/pre&gt;&lt;p&gt; This will create a directory named MatlabLyceumProject, which you should go into by typing &lt;/p&gt;
&lt;pre&gt;cd MatlabLyceumProject&lt;/pre&gt;&lt;p&gt; If you type &lt;/p&gt;
&lt;pre&gt;ls&lt;/pre&gt;&lt;p&gt;you&#039;ll see that the MatlabLyceumProject directory contains a job file and a couple of Matlab files. You can edit main.m using the &lt;a href=&quot;http://www.gnu.org/software/emacs/manual/html_mono/emacs.html&quot;&gt;emacs&lt;/a&gt;   editor by typing &lt;/p&gt;
&lt;pre&gt;emacs main.m&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;3. Running jobs on Lyceum4&lt;/strong&gt;
&lt;/p&gt;&lt;p&gt;Once you have written your Matlab code, you can get Lyceum4 to run it by submitting a job file. The Matlab project template includes an example job file called &#039;job&#039;, which you can edit using the command &lt;/p&gt;
&lt;pre&gt;emacs job&lt;/pre&gt;&lt;p&gt;from within the MatlabLyceumProject directory. This job file will request sixteen processors on one of Lyceum4&#039;s nodes, for one minute. It will run sixteen instances of main.m. You can request a different number of nodes or a different number of processors per node by changing the following line in the job file&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;#PBS -l nodes=1:ppn=16&lt;/pre&gt;&lt;p&gt;Likewise, you can request more than one minute of processor time by changing the following line  in the job file&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;#PBS -l walltime=00:01:00&lt;/pre&gt;&lt;p&gt;In the job file, the ampersands (&amp;amp;) at the end of each line that runs the executable are required in order to get them to run in parallel. Each of the sixteen instances uses different command line parameters, which specify the SNRs to consider. The job can be submitted to Lyceum4 by issuing the command &lt;/p&gt;
&lt;pre&gt;qsub job&lt;/pre&gt;&lt;p&gt; from within the MatlabLyceumProject directory. You can see the state of your jobs (Queued or Running) by using the command    &lt;/p&gt;
&lt;pre&gt;qstat&lt;/pre&gt;&lt;p&gt;This will tell you the Job ID number, which you need in order to cancel a job using the command &lt;/p&gt;
&lt;pre&gt;qdel &amp;lt;JobID&amp;gt;&lt;/pre&gt;&lt;p&gt;You can see how busy Lyceum4 is using the command  &lt;/p&gt;
&lt;pre&gt;showq&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;When the example job has finished running, you should find that some results files have been created. You can consolidate these files into one by running the consolidate.m script on Lyceum4&#039;s login node. You can do this using the commands &lt;/p&gt;
&lt;pre&gt;module load matlab&lt;br /&gt;matlab -r &quot;consolidate&quot;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt; Note that it is okay to run quick scripts like this on the login node. However, long simulations should always be run by submitting them as jobs, as described above. &lt;/p&gt;
&lt;p&gt;Have fun, &lt;a href=&quot;http://ecs.soton.ac.uk/people/rm&quot;&gt;Rob Maunder&lt;/a&gt;. &lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;University of Southampton:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/taxonomy/term/13&quot;&gt;Resources&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 08 Jul 2009 09:45:45 +0000</pubDate>
 <dc:creator>rm</dc:creator>
 <guid isPermaLink="false">121 at https://www-mobile.ecs.soton.ac.uk</guid>
 <comments>https://www-mobile.ecs.soton.ac.uk/resources/lyceum/matlab#comments</comments>
</item>
<item>
 <title>Using IT++ on Lyceum2</title>
 <link>https://www-mobile.ecs.soton.ac.uk/resources/lyceum</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://www.southampton.ac.uk/isolutions/computing/hpc/compute/index.html&quot;&gt;Lyceum2&lt;/a&gt;  is a cluster of Linux computers for students to use in their projects. You can get more help with using Lyceum2 &lt;a href=&quot;http://www.southampton.ac.uk/isolutions/computing/hpc/compute/help/index.html&quot;&gt;here&lt;/a&gt;. It has version 4.0.6 of the &lt;a href=&quot;http://itpp.sourceforge.net/&quot;&gt;IT++&lt;/a&gt;  libraries installed. These libraries provide a number of useful mathematical, signal processing and communication routines. You can find out more about these routines in the &lt;a href=&quot;http://itpp.sourceforge.net/current/modules.html&quot;&gt;IT++ documentation&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1a. Uploads, downloads and logging in&lt;/strong&gt;&lt;strong&gt; on Linux or Mac computers&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;You can upload a file by opening a terminal program and using the command&lt;/p&gt;
&lt;pre&gt;scp &amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;YourUserName&amp;gt;@lyceum2.soton.ac.uk:&amp;lt;DestinationPath&amp;amp;FileName&amp;gt;&lt;/pre&gt;&lt;p&gt;Note that it is your iSolutions password that you need to input when prompted. For example, I might type &lt;/p&gt;
&lt;pre&gt;scp main.cpp rm@lyceum2.soton.ac.uk:MySimulations/BPSKinAWGN/ &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;You can download using the command  &lt;/p&gt;
&lt;pre&gt;scp &amp;lt;YourUserName&amp;gt;@lyceum2.soton.ac.uk:&amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;DestinationPath&amp;amp;FileName&amp;gt;  &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;and you can log in using the command&lt;/p&gt;
&lt;pre&gt;ssh -X &amp;lt;YourUserName&amp;gt;@lyceum2.soton.ac.uk&lt;/pre&gt;&lt;p&gt;Again, it is your iSolutions password that you need to input when prompted.  &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1b. Uploads, downloads and logging in&lt;/strong&gt;&lt;strong&gt; on Windows computers&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;You can upload and download files using &lt;a href=&quot;http://the.earth.li/%7Esgtatham/putty/latest/x86/pscp.exe&quot;&gt;PSCP&lt;/a&gt;. You should save this to your My Documents folder. Next, you should open a command window by clicking Start, then Run... and then typing&lt;/p&gt;
&lt;pre&gt;cmd&lt;/pre&gt;&lt;p&gt; You can change to your My Documents folder by typing &lt;/p&gt;
&lt;pre&gt;cd &quot;My Documents&quot;&lt;/pre&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;You can upload a file by typing&lt;/p&gt;
&lt;pre&gt;pscp &amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;YourUserName&amp;gt;@lyceum2.soton.ac.uk:&amp;lt;DestinationPath&amp;amp;FileName&amp;gt;&lt;/pre&gt;&lt;p&gt;Note that it is your iSolutions password that you need to input when prompted. For example, I might type &lt;/p&gt;
&lt;pre&gt;pscp main.cpp rm@lyceum2.soton.ac.uk:MySimulations/BPSKinAWGN/ &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;You can download using the command  &lt;/p&gt;
&lt;pre&gt;pscp &amp;lt;YourUserName&amp;gt;@lyceum2.soton.ac.uk:&amp;lt;SourcePath&amp;amp;FileName&amp;gt; &amp;lt;DestinationPath&amp;amp;FileName&amp;gt;  &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;In order to log in to Lyceum2, you need to save &lt;a href=&quot;http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe&quot;&gt;PuTTY&lt;/a&gt;  to your My Documents folder. From within the My Documents folder in the command window, you should type &lt;/p&gt;
&lt;pre&gt;putty &amp;lt;YourUserName&amp;gt;@lyceum2.soton.ac.uk&lt;/pre&gt;&lt;p&gt;Again, it is your iSolutions password that you need to input when prompted.  You can find out more about PuTTY and PSCP &lt;a href=&quot;http://www.chiark.greenend.org.uk/%7Esgtatham/putty/&quot;&gt;here&lt;/a&gt;.  &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Installing the IT++ project template on Lyceum2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The first step is to log in to Lyceum2 and then download the IT++ project template. You can do this by giving Lyceum2 the command&lt;/p&gt;
&lt;pre&gt;wget http://users.ecs.soton.ac.uk/rm/itppLyceumProject.tgz&lt;/pre&gt;&lt;p&gt;You can extract the template by typing &lt;/p&gt;
&lt;pre&gt;tar -xzvf itppLyceumProject.tgz&lt;/pre&gt;&lt;p&gt; This will create a directory named itppLyceumProject, which you should go into by typing &lt;/p&gt;
&lt;pre&gt;cd itppLyceumProject&lt;/pre&gt;&lt;p&gt; If you type &lt;/p&gt;
&lt;pre&gt;ls&lt;/pre&gt;&lt;p&gt;you&#039;ll see that the itppLyceumProject directory contains a Makefile, a job file and three subdirectories. You should write your .cpp and .h files in the src subdirectory. This comes with an example main.cpp to get you started. You can edit this using the &lt;a href=&quot;http://www.gnu.org/software/emacs/manual/html_mono/emacs.html&quot;&gt;emacs&lt;/a&gt;   editor by typing &lt;/p&gt;
&lt;pre&gt;emacs src/main.cpp&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;3. Compiling on Lyceum2&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt; When logged on to Lyceum2, you can compile your code using the commands &lt;/p&gt;
&lt;pre&gt;module load itpp&lt;br /&gt;make&lt;/pre&gt;&lt;p&gt;from within the itppLyceumProject directory.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Running jobs on Lyceum2&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;Once you have compiled your code, you can get Lyceum2 to run it by submitting a job file. The IT++ project template includes an example job file called &#039;job&#039;, which you can edit using the command  &lt;/p&gt;
&lt;pre&gt;emacs job&lt;/pre&gt;&lt;p&gt;from within the itppLyceumProject directory. This job file will request eight processors on one of Lyceum2&#039;s nodes, for one minute. It will run eight instances of the executable a.out, which is created in the bin directory when the example main.cpp is compiled. In the job file, the ampersands (&amp;amp;) at the end of each line that runs the executable are required in order to get them to run in parallel. Each of the eight instances uses different command line parameters, which specify the SNRs to consider. The job can be submitted to Lyceum2 by issuing the command    &lt;/p&gt;
&lt;pre&gt;qsub job&lt;/pre&gt;&lt;p&gt; from within the itppLyceumProject directory. You can see the state of your jobs (Queued or Running) by using the command    &lt;/p&gt;
&lt;pre&gt;qstat&lt;/pre&gt;&lt;p&gt;This will tell you the Job ID number, which you need in order to cancel a job using the command &lt;/p&gt;
&lt;pre&gt;qdel &amp;lt;JobID&amp;gt;&lt;/pre&gt;&lt;p&gt;You can see how busy Lyceum2 is using the command  &lt;/p&gt;
&lt;pre&gt;showq&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;When the example job has finished running, you should find that some results files have been created in the itppLyceumProject directory. &lt;/p&gt;
&lt;p&gt;There is more information on how to run jobs on Lyceum2 &lt;a href=&quot;http://www.southampton.ac.uk/isolutions/computing/hpc/compute/help/pbs_maui.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that simulations should always be run by submitting them as jobs. However, it is okay to edit files and compile on the login node. You can also run short programs that collect all your results together into a single file, for example. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Have fun, &lt;a href=&quot;http://ecs.soton.ac.uk/people/rm&quot;&gt;Rob Maunder&lt;/a&gt;. &lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;University of Southampton:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/taxonomy/term/13&quot;&gt;Resources&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 17 Feb 2009 18:52:20 +0000</pubDate>
 <dc:creator>rm</dc:creator>
 <guid isPermaLink="false">109 at https://www-mobile.ecs.soton.ac.uk</guid>
 <comments>https://www-mobile.ecs.soton.ac.uk/resources/lyceum#comments</comments>
</item>
<item>
 <title>Useful resources for students, staff and visitors</title>
 <link>https://www-mobile.ecs.soton.ac.uk/resources</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;?q=resources/itpp&quot;&gt;Using IT++ in the students computer room&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;?q=resources/lyceum&quot;&gt;Using IT++ on Lyceum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;?q=resources/lyceum/matlab&quot;&gt;Using Matlab on Lyceum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://files.wireless.ecs.soton.ac.uk/files/SWprinter.jpg&quot;&gt;Printer setup&lt;/a&gt; File needed, right-click to save: &lt;a href=&quot;http://files.wireless.ecs.soton.ac.uk/files/KOC360UX.ppd&quot;&gt;KOC360UX.ppd&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;University of Southampton:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/taxonomy/term/13&quot;&gt;Resources&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 14 Oct 2008 17:09:09 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">102 at https://www-mobile.ecs.soton.ac.uk</guid>
 <comments>https://www-mobile.ecs.soton.ac.uk/resources#comments</comments>
</item>
</channel>
</rss>
