Page 1 of 1

How to run "parallelcomputetool" menu from hoc?

Posted: Mon Sep 28, 2009 5:17 pm
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?

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

Posted: Tue Sep 29, 2009 10:01 am
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).