phdstudent
phdstudent

Reputation: 1144

Matlab library code on cluster - not using more than one core/thread?

I am running matlab on a university cluster. The code has no parfor loops but has makes extensive use of vectorized code. So on my local machine when I run the code, the code actually often uses several threads.

However, on the cluster, even though I allocate 76 cores to the program, it never uses more than 1. I am not sure if there is any specific instruction I need to add to the beginning of the code or to the sbatch command.

Any ideas?

Upvotes: 1

Views: 27

Answers (1)

Edric
Edric

Reputation: 25140

You can use maxNumCompThreads to control the number of computational threads MATLAB will use.

Upvotes: 1

Related Questions