필터 지우기
필터 지우기

parallelizing a nested loops

조회 수: 1 (최근 30일)
Amir
Amir 2015년 1월 14일
편집: Amir 2015년 1월 14일
I have tried use parpool and parfor on these nested loops, but due to inter-dependencies I wasn't successful. Can anyone help me with parallelizing this?
%p.s: samples is constant
for(a=1:size(bench,1))
for(d=1:size(bench,2))
allGuesses = sampleModel(BNmodel_loo(a), bench(a,d).micaNorm, samples);
predTable((index):(index+samples-1),:) = allGuesses(:,(BNmodel_loo(a).pca.length+1):end);
dataSetId(index:(index+samples-1)) = d;
appNames(index:(index+samples-1)) = bench(a,d).application;
index = index+samples;
end
end
Appreciate any helps,
-Amir

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by