![]() ![]() #SBATCH -cpus-per-task=1 # cpu-cores per task (>1 if multi-threaded tasks) #SBATCH -ntasks=1 # total number of tasks across all nodes #SBATCH -job-name=matlab # create a short name for your job ![]() The Slurm script (job.slurm) below can be used for serial jobs: Here is an example of a trivial, one-line serial MATLAB script (hello_world.m): Learn more about Slurm or see the example below.Ī serial MATLAB job is one that requires only a single CPU-core. A job consists of two pieces: (1) a MATLAB script and (2) a Slurm script that specifies the needed resources, sets the environment and lists the commands to be run. This applies to Adroit, Della and TigerGPU. One can also submit MATLAB batch jobs to the Slurm scheduler. The web interface described above is good for interactive work. Submitting Batch Jobs to the Slurm Scheduler Start the session by setting up the Gurobi MATLAB interface at the MATLAB prompt: This will enable the software and allow the license to be found. If you need to use Gurobi within your OnDemand MATLAB session then enter the environment module name (e.g., gurobi/9.0.1) in the field labeled "Additional environment modules to load" when creating the session. The Gurobi optimization library is required for certain MATLAB packages. Note that the more resources you request, the more you will have to wait for your session to become available. Click "Launch" and then when your session is ready click "Launch MATLAB". Set "Number of cores" to 1 unless you are sure that your script has been explicitly parallelized using, for example, the Parallel Computing Toolbox (see below). You will need to choose the "MATLAB version", "Number of hours" and "Number of cores". ![]() To begin a session, click on "Interactive Apps" and then "MATLAB". If you need an account on Adroit then complete this form. You will need to use a VPN to connect from off-campus ( GlobalProtect VPN is recommended). If you have an account on Adroit or Della then browse to or. If you are new to high-performance computing then you will find that the simplest way to use MATLAB on the HPC clusters is through the Open OnDemand web interface. Learn More about Princeton Virtual Desktop. Choose "Student Labs" then "MATLAB". Central OIT maintains this service, so please open a Support Ticket with issues. If you are most comfortable with Microsoft Windows and only need a single CPU-core, consider running MATLAB using the Princeton Virtual Desktop. Running MATLAB via Your Web Browser Princeton Virtual Desktop
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |