Unable to make parpool work
조회 수: 1 (최근 30일)
이전 댓글 표시
I have 6 scripts that save images in different directories. I am not able to make parpool work or actually, maybe I don't understand how to make it work. To just test it, I wrote a file say a.m, that just had
varA=5 and b.m that just had
varB = 10
I then said
parpool('AttachedFiles',{'a.m','b.m'})
I got this output Starting parallel pool (parpool) using the 'local' profile ... connected to 4 workers.
ans =
Pool with properties:
Connected: true
NumWorkers: 4
Cluster: local
AttachedFiles: /home/scripts/matlab_dir/a.m
/home/scripts/matlab_dir/b.m
IdleTimeout: 30 minute(s) (30 minutes remaining)
SpmdEnabled: true
What I don't understand is why is not printing the output? Am I missing out something? Should I make some changes if I am writing a for loop for iterating through the images and storing them?
Is there any other alternative to run four .m files paralelly in matlab?
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 5월 5일
You created the parallel pool but you have not given it any work.
See spmd and see parfeval and see batch
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!