Uses OMP_NUM_THREADS to control the number of computation threads that MATLAB is allowed to use
Set USE_OMP_THREADS to 1 and then, ideally, set OMP_NUM_THREADS to the number of threads to use. This may already be set by your cluster admin, or you can get it from the allocated thread count variable provided by your cluster software, e.g.:
SLURM_NTASKS or SLURM_NPROCS (deprecated)
NSLOTS (Grid Engine)
FSLSUB_NSLOTS (fsl_sub)
If this isn't set then MATLAB will be allowed to automatically determine the number of threads.
Uses OMP_NUM_THREADS to control the number of computation threads that MATLAB is allowed to use
Set USE_OMP_THREADS to 1 and then, ideally, set OMP_NUM_THREADS to the number of threads to use. This may already be set by your cluster admin, or you can get it from the allocated thread count variable provided by your cluster software, e.g.:
SLURM_NTASKS or SLURM_NPROCS (deprecated) NSLOTS (Grid Engine) FSLSUB_NSLOTS (fsl_sub)
If this isn't set then MATLAB will be allowed to automatically determine the number of threads.