andersonwinkler / PALM

PALM: Permutation Analysis of Linear Models
69 stars 28 forks source link

Add option to run with threads in MATLAB #56

Closed scratchings closed 5 months ago

scratchings commented 5 months ago

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.