I'm running a simulation that goes through an experimental design (33 design points) and runs 100 iterations at each point. I write all the data out to text files for analysis later. Everything has been working fine when all I wanted were the end results, but now I'm trying to log some of the activities that take place within each run so that I can examine the timing. Since parfor runs things in an unpredictable fashion this is a little more complicated...
The approach I've tried is to use
t = getCurrentTask();
and then have all my file writes include t.id
Here's my issue: I'm running on a quad-core computer, and I have four workers. So I should have four unique task id's right? When I look at the text files that I write out, there are 100 unique task id's. The vast majority (36353 out of 44357 to be precise) are from task id's 1-4....what's the deal with the others?

댓글 수: 1

Edric Ellis
Edric Ellis 2015년 3월 31일
How are you creating the job that's running here?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기

질문:

2015년 3월 30일

편집:

2015년 3월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by