Relative Content

Tag Archive for matlabparallel-processingcpu-usage

Parallel Computing and usage of CPUs

I have a conceptual question. I have a MATLAB code for simulating a beam propagation (optics) which has lots of for loops inside it but every iteration in a loop depends on the previous one (n+1 th iteration depends on the values from nth iteration). As I understood it means that the loops are not suitable for parallel computing, i.e. I cannot use parfor instead of for. Does that mean when I send my job using batch to the node of a cluster, am I only using 1 core in that node?