How to run "parallelcomputetool" menu from hoc?

General issues of interest both for network and
individual cell parallelization.

Moderator: hines

Post Reply
Keivan
Posts: 127
Joined: Sat Apr 22, 2006 4:28 am

How to run "parallelcomputetool" menu from hoc?

Post by Keivan »

1) I want to know how can I run parallelcomputetool menu from hoc?
2) I understand reading forum I can change number of threads using this command.
ex. if I want 2 threads --> ParallelComputeTool[0].nthread(2)
3) how can I change number of cpus without using refresh and GUI?
4) how to activate multisplite and busy waiting in that menu from hoc?
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: How to run "parallelcomputetool" menu from hoc?

Post by ted »

Please see http://www.neuron.yale.edu/neuron/stati ... ml#Threads and the hoc source code for the tool, which is in nrn/lib/hoc/parcom.hoc
how can I change number of cpus
Buy a new PC. If you mean "how do I discover how many useful cpus are in my PC" the answer is to create an instance of the ParallelContext class and then call pc.thread_how_many_proc() (described at the URL listed above).
Post Reply