online blackjack for real money tri card poker how to play http://bestblackjackbonuses.org las vegas blackjack rules nodownloadusacasinos.org flash casinos for mac http://newusacasinos.org best Classic Slot machines All our recommended sites best california casino sites http://bestusacasinos.org

Projects

Navigation

User login

User menu

You are here

Using Matlab on Iridis

iridis is a cluster of Linux computers that researchers can use in their Matlab projects. You can get more help with using iridis here.

1a. Uploads, downloads and logging in on Linux or Mac computers

You can upload a file by opening a terminal program and using the command

scp <SourcePath&FileName> <YourUserName>@iridis3_a.soton.ac.uk:<DestinationPath&FileName>

Note that it is your iSolutions password that you need to input when prompted. For example, I might type

scp main.m rm@iridis3_a.soton.ac.uk:MySimulations/BPSKinAWGN/ 

You can download using the command

scp <YourUserName>@iridis3_a.soton.ac.uk:<SourcePath&FileName> <DestinationPath&FileName>  

and you can log in using the command

ssh -X <YourUserName>@iridis3_a.soton.ac.uk

Again, it is your iSolutions password that you need to input when prompted. 

1b. Uploads, downloads and logging in on Windows computers

You can upload and download files using PSCP. You should save this to your My Documents folder. Next, you should open a command window by clicking Start, then Run... and then typing

cmd

You can change to your My Documents folder by typing

cd "My Documents"

You can upload a file by typing

pscp <SourcePath&FileName> <YourUserName>@iridis3_a.soton.ac.uk:<DestinationPath&FileName>

Note that it is your iSolutions password that you need to input when prompted. For example, I might type

pscp main.cpp rm@iridis3_a.soton.ac.uk:MySimulations/BPSKinAWGN/ 

You can download using the command

pscp <YourUserName>@iridis3_a.soton.ac.uk:<SourcePath&FileName> <DestinationPath&FileName>  

In order to log in to iridis, you need to save PuTTY to your My Documents folder. From within the My Documents folder in the command window, you should type

putty <YourUserName>@iridis3_a.soton.ac.uk

Again, it is your iSolutions password that you need to input when prompted.  You can find out more about PuTTY and PSCP here

2. Configuring the Matlab Compiler on Iridis

The Matlab Compiler on Iridis needs to be configured before you can use it. However, this only needs to be done once. You can do this by logging in to iridis and then giving the following commands

module load matlab/2011a 
matlab -nodisplay -r "mbuild -setup"

This second command will give you two options. You should type '1' to select the second option. After this, you can exit Matlab by giving the command

exit 

3. Installing the Matlab project template on iridis

The first step is to log in to iridis and then download the Matlab project template. You can do this by giving iridis the command

wget http://users.ecs.soton.ac.uk/rm/MatlabIridisProject.tgz

You can extract the template by typing

tar -xzvf MatlabIridisProject.tgz

This will create a directory named MatlabIridisProject, which you should go into by typing

cd MatlabIridisProject

If you type

ls

you'll see that the MatlabIridisProject directory contains a job file and a couple of Matlab files. You can edit main.m using the emacs editor by typing

emacs main.m

4. Compiling Matlab code on iridis

You can compile your Matlab code by logging in to iridis and entering the following commands from within the MatlabIridisProject directory.

module load matlab/2011a 
mcc -R nodisplay -mv main.m

If your Matlab file main.m calls any other Matlab .m files that you have written, then you would need to list them in this command. For example, if our main.m called functions in file1.m and file2.m, we would need

mcc -mv -R nodisplay main.m file1.m file2.m

Once Matlab has finished compiling our code, we are left with an executable file called run_main.sh.

5. Running jobs on iridis

Once you have written your Matlab code, you can get iridis to run it by submitting a job file. The Matlab project template includes an example job file called 'job', which you can edit using the command

emacs job

from within the MatlabIridisProject directory. This job file will request twelve processors on one of iridis's nodes, for one minute. It will run twelve instances of run_main.sh. In the job file, the ampersands (&) at the end of each line that runs the executable are required in order to get them to run in parallel. Each of the twelve instances uses different command line parameters, which specify the SNRs to consider. The job can be submitted to iridis by issuing the command

qsub job

from within the MatlabIridisProject directory. You can see the state of your jobs (Queued or Running) by using the command

qstat

This will tell you the Job ID number, which you need in order to cancel a job using the command

qdel <JobID>

You can see how busy iridis is using the command

showq

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 iridis's login node. You can do this using the commands

module load matlab/2011a
matlab -nodesktop -r "consolidate"

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.

Have fun, Rob Maunder.

University of Southampton: