Running NetLogo on HPC machine: how to specify the number of cores to be used?

我的未来我决定 提交于 2019-12-13 02:23:46

问题


 $ wget https://ccl.northwestern.edu/netlogo/5.1.0/netlogo-5.1.0.tar.gz
 $ tar -xzf netlogo-5.1.0.tar.gz

$ ~/netlogo-5.1.0/netlogo-headless.sh \
--model ~/myproject/MyModel.nlogo \
--experiment MyExperiment \
--table ~/myproject/MyNewOutputData.csv

Using the above commands to run a netlogo headless on HPC machine. The problem is how to I specify the number of cores to be used or does by default take the maximum avialable?


回答1:


A look at http://ccl.northwestern.edu/netlogo/5.1.0/docs/behaviorspace.html#advanced reveals:

--threads <number>: use this many threads to do model runs in parallel, or 1 to disable parallel runs. defaults to one thread per processor.

This is equivalent to the same setting in the BehaviorSpace GUI.



来源:https://stackoverflow.com/questions/28409720/running-netlogo-on-hpc-machine-how-to-specify-the-number-of-cores-to-be-used

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!