MATLAB: To I receive the error “Too many input arguments” when configuring a cluster profile with Slurm

MATLAB Parallel Server

When configuring a cluster profile with Slurm, I receive an error "Too many input arguments" when trying to save the profile.

Best Answer

When choosing scripts for Slurm integration you will need to use different scripts based on whether your file system is shared or not. If you choose the shared file system scripts and enter the nonshared format you will receive the error above. 
If all the machines that submit to the cluster share the file system with the cluster and can issue qsub command then you will need to use the independentSubmitFcn script from the shared folder.
If all the machines that submit to the cluster share the file system but are unable to issue the qsub command to the cluster, then you will need to use the independentSubmitFcn script either from the remoteSubmission or nonshared folder.
The syntax to declare the script for each file system in the configuration panel for Generic Scheduler is as follows:
For shared scripts, it is:
only @independentSubmitFcn
For remote submission it is:
{@indepententSubmitFcn, hostname}
For nonshared submission it is
{@independentSubmitFcn, hostname, remote job storage location}