How to Run Batch Operation on Cluster Computer

If you are pursuing your higher studies in the field of machine learning, its very likely that you have to “deal” with big data. By “deal”, I mean you might have to extract features, or say for example, find the eigenvectors and eigenvalues of large matrices. Carrying out these types of simulations on real or synthetic data on typical desktop/laptops may take days to run. Its suggested that you run these simulations on your University’s super computer or cluster computer. I am assuming that you have access to such a cluster.

These clusters are typically multi-core computers with huge amount of RAMs and tremendous processing powers. But you cannot just run any code on these clusters. You need a batch script (SLURM) to utilize the resources. You have access to a front end node and through that node you have to submit your batch job. I will show how to run a MATLAB code on the cluster using the sbatch command. I am assuming that you are on MacOSX/Linux and can use the terminal. If you are on Windows, install PuTTY to emulate the terminal.

Continue reading

Instaling MATLAB R2007a on Ubuntu

One of the most prominent reason’s for which I had to stay in Windows was MATLAB. As an engineering student, I need MATLAB very often. But I didn’t find MATLAB CD/DVD for linux in the computer markets of Dhaka. I have installed VMWare Server on my Ubuntu and installed Win XP inside the virtual machine and thereby tried to use MATLAB in linux. But the performance was too poor to be useful. At last I got MATLAB R2007a Unix DVD and thought “wow, now i don’t have to stay in windows!!”. I am giving here the complete procedure of installing MATLAB R2007a Unix on Ubuntu 8.04.

Continue reading