Abhishek Bhatia
Abhishek Bhatia

Reputation: 9806

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

 $ 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?

Upvotes: 2

Views: 416

Answers (1)

Seth Tisue
Seth Tisue

Reputation: 30453

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.

Upvotes: 3

Related Questions