Batch inside a Batch

3 次查看(过去 30 天)
Rafa Valero
Rafa Valero 2013-5-1
Hi everyone, I am interesting in check the performance of a program by using different cores in a cluster. To submit my function to de cluster I write something like: job= batch('my_script','matlabpool',8)
and in my_script I have something like job=batch('other_script','matlabpool',5)
but I do not obtain and answer from the cluster because it is too much long or maybe it structure is not allow.
Do someone know a more effective way?
Thanks in advance. Rafa
  2 个评论
Jan
Jan 2013-5-1
The question is not clear. What is "too long" and how could a performance be measured, when "a structure is not allowed"? Doesn't this mean, that the program crashes?
Rafa Valero
Rafa Valero 2013-5-3
Sorry for my english. "Too long" means I am not allow to try it for more that 30 minutes, in my caso, more that 30 minutes. When I said "a structure is not allowed", I meant if it is possible to have a batch inside a batch. Thanks

请先登录,再进行评论。

采纳的回答

Yavor Kamer
Yavor Kamer 2013-5-1
It seems like you are not allowed to change the pool size on the cluster. You can see the effect of the number of cores by changing the allocated workers in a parallel for loop like this
parfor(i=1:100,W)
and then you change W to the number of workers (cores/threads) you want to test
  1 个评论
Rafa Valero
Rafa Valero 2013-5-3
Thank you very much Yavor, it is a very simple an effective answer that I didn't thought.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cluster Configuration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by