SPMD to process different iteration on different worker
5 views (last 30 days)
I'm trying to use the spmd to process different iteration. The current problem I have is the spmd function is repeating the same processing on different worker. I have tried to use parfor but the parfor cannot guarantee the iteration is process in order. What I am looking for is to have the iteration process in order. For example, from 0>1>2>3>4,.... Below is the sample code.
iCellNum = 1;
activeUeNums = 1;
for ttiNum = 1 : 20
fprintf('%s processing subframe: %d\n', getTimeNow, ttiNum-1);