Matlab

Sample job file for running Matlab serial job for single CPU:

File Name : matlab.cmd

#!/bin/bash

#@ output = test.out

#@ error = test.err

#@ job_type = serial

#@ class = Matlab

#@ environment = COPY_ALL

#@ queue

Jobid=`echo $LOADL_STEP_ID | cut -f 6 -d .`

tmpdir=$HOME/scratch/job$Jobid

mkdir -p $tmpdir; cd $tmpdir

cp -R $LOADL_STEP_INITDIR/* $tmpdir

matlab < mathinput.m

mv ../job$Jobid $LOADL_STEP_INITDIR

In the command prompt, type the command, llsubmit matlab.cmd

Sample job file for running Scilab serial job for single CPU:

File Name : scilab.cmd

#!/bin/bash

#@ output = test.out

#@ error = test.err

#@ job_type = serial

#@ class = Matlab

#@ environment = COPY_ALL

#@ queue

Jobid=`echo $LOADL_STEP_ID | cut -f 6 -d .`

tmpdir=$HOME/scratch/job$Jobid

mkdir -p $tmpdir; cd $tmpdir

cp -R $LOADL_STEP_INITDIR/* $tmpdir

scilab -nb -nwni -f filename

mv ../job$Jobid $LOADL_STEP_INITDIR

In the command prompt, type the command, llsubmit scilab.cmd