I want to submit serial matlab script on HPC server using:
Code:
#!/bin/bash
#$ -N matlabjob
#$ -q all.q
#$ -pe mpi 1
/opt/matlab/bin/matlab -nodesktop -nosplash -r "run /home/abhishekb/Matlab/new.m;quit" > out.txt
Error:
License checkout failed.
License Manager Error -15
MATLAB is unable to connect to the license server.
Check that the license manager has been started ,and that the MATLAB client machine can communicate
with the license server.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2013b/15
Diagnostic Information:
Feature: MATLAB
License path: /home/abhishekb/.matlab/R2013b_licenses:/opt/matlab/licenses/license.dat:/opt/matlab/licenses/networ
k.lic
Licensing error: -15,570. System Error: 115
But this doesn't work as IT guy told me " as we don't have distributed computing license so parallel jobs of matlab can't run".
So I tried to run it background as:
#!/bin/bash
nohup /opt/matlab/bin/matlab -nodesktop -nosplash -r "run /home/abhishekb/Matlab/New_edited3.m;quit" > output.log </dev/null &
echo $! > save_pid.txt
But it seems to run unbearably slow. Even reading .csv files takes time. I am comparing to the run on my pc based just on the output intervals.
Can someone help me how to submit a serial job which doesn't require "matlab's distributed computing license". If this makes sense.
I use qsub
for submitting jobs.
EDIT:
>> mcc -m automate.m
Undefined function 'mcc' for input arguments of type 'char'.
>> ver
------------------------------------------------------------------------------**strong text**----------------------
MATLAB Version: 8.2.0.701 (R2013b)
MATLAB License Number: _______
Operating System: Linux 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 8.2 (R2013b)
Simulink Version 8.2 (R2013b)
Bioinformatics Toolbox Version 4.3.1 (R2013b)
Communications System Toolbox Version 5.5 (R2013b)
Computer Vision System Toolbox Version 5.3 (R2013b)
Control System Toolbox Version 9.6 (R2013b)
Curve Fitting Toolbox Version 3.4 (R2013b)
DSP System Toolbox Version 8.5 (R2013b)
Fixed-Point Designer Version 4.1 (R2013b)
Global Optimization Toolbox Version 3.2.4 (R2013b)
Image Processing Toolbox Version 8.3 (R2013b)
Neural Network Toolbox Version 8.1 (R2013b)
Optimization Toolbox Version 6.4 (R2013b)
Parallel Computing Toolbox Version 6.3 (R2013b)
Partial Differential Equation Toolbox Version 1.3 (R2013b)
RF Toolbox Version 2.13 (R2013b)
Signal Processing Toolbox Version 6.20 (R2013b)
SimBiology Version 4.3.1 (R2013b)
Statistics Toolbox Version 8.3 (R2013b)
Symbolic Math Toolbox Version 5.11 (R2013b)
Wavelet Toolbox Version 4.12 (R2013b)
>>