Hi, I am a new for slurm. I want to ask for 2 nodes (per nodes with 48 workers) to run my parfor code test.m, however a license error occured, such as:
MATLAB is selecting SOFTWARE OPENGL rendering.License checkout failed.License Manager Error -9The hostid of your computer ("20001107fe80 80615f04fae5 80615f04fae6") does not match the hostid of the license file (20000307fe80). To run on this computer, you must run the Activation client to reactivate your license.Troubleshoot this issue by visiting: https://www.mathworks.com/support/lme/R2020b/9Diagnostic Information:Feature: MATLAB License path: /public/home/hpc175001007/.matlab/R2020b_licenses/license_ln01_8174359_R2020b.lic:/public/home/hpc175001007/MATLAB/R2020b/licenses/license.dat:/public/home/hpc175001007/MATLAB/R2020b/licenses Licensing error: -9,57.
my test.m is
clearclc%parpool(48);
n=10000000;t1 = clock;a = zeros(n,1);parfor i=1:n a(i) = i;endt2 = clock;ti = etime(t2,t1);save par_timei ti
and my sbatch routine is
#!/bin/bash#SBATCH -o Lammps.%j.out#SBATCH -J matlabJOB#SBATCH -p cpuQ#SBATCH --nodes=2#SBATCH --ntasks-per-node=48cd /public/home/hpc175001007/workpath/code/matlab -nodesktop -nosplash -r test
Anyone can help me with this?
Best Answer