在HPC计算机上运行NetLogo:如何指定要使用的内核数? [英] Running NetLogo on HPC machine: how to specify the number of cores to be used?
本文介绍了在HPC计算机上运行NetLogo:如何指定要使用的内核数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ 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
使用以上命令在HPC计算机上无头运行netlogo.问题是如何指定要使用的内核数,或者默认情况下是否占用最大内核数?
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?
推荐答案
看看 http://ccl.northwestern.edu/netlogo/5.1.0/docs/behaviorspace.html#advanced 显示:
--threads <number>
:使用这么多线程来并行执行模型运行,或者使用1禁用并行运行.每个处理器默认为一个线程.
--threads <number>
: use this many threads to do model runs in parallel, or 1 to disable parallel runs. defaults to one thread per processor.
这等效于BehaviorSpace GUI中的相同设置.
This is equivalent to the same setting in the BehaviorSpace GUI.
这篇关于在HPC计算机上运行NetLogo:如何指定要使用的内核数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文