Training/Matlab-Viper-plugin

From HPC
Revision as of 11:01, 22 January 2018 by Seif (talk | contribs) (Matlab to Viper)

Jump to: navigation , search

Matlab viper plugin

Introduction

There is a feature in Matlab that enables you to submit jobs to clusters directly from your matlab client (normal desktop matlab). we were able to develop Matlab-Viper plugin that utilise this feature and integrate Matlab with viper to enable all our Matlab users to submit some Matlab jobs to viper easily without the need to know much about hpc. Everything could be done from the normal desktop Matlab version that many users are already using. This guide should explain more on how to use viper through the Matlab viper plugin. in-general the toolbox that could utilise such integration is the Matlab parallel computing toolbox. we will try to explain the main concepts here and point you to some Mathworks tutorial that you could use and try on viper.

  • If you don't have Matlab-Viper plugin installed and tested on your Matlab contact help@hull.ac.uk or viper@hull.ac.uk and we will help you to install it and configure it.
  • This is only available for Matlab 2017a , we will try to support all the upcoming versions starting from 2017a. if you have a special use case that requires the usage of older version you could check the possibility of creating a plugin for it by emailing us : viper@hull.ac.uk

Matlab to Viper

using parallel tool box, you can run your matlab code on viper using 2 modes.

  1. Batch job.
    • this is the main way to utilize the Matlab-viper -plugin. this submit your job to Viper queening system (SLURM) and send back the results to your client once everything is done.
    • this is very useful for time consuming job that need hours or even days to finish. you will submit your job and you don't need to keep your Matlab running or even the whole computer could be shutdown.
  2. Parallel pool.
    • This is nother ode of operation that is easier if you are testing piece of code or running a small job that you expect to finish in few minutes.
    • thsi equires a running connection to be in place between your computer and viper. at anypoint you shutdown your Matlab, Wifi or even your laptop everything will be lost and you will need to rerun your code/simulation.