Code: Select all
objref pc
pc = new ParallelContext()
print pc.nhost()
I am using the January Alpha 315 installer on Linux, although I verified this with a vanilla Windows NEURON 7.0 install as well.
Any ideas as to why this is happening?
Moderator: hines
Code: Select all
objref pc
pc = new ParallelContext()
print pc.nhost()
Are you sure that's necessary? For examples of code that works just fine on single processor boxes without mpi, and on clusters with mpi, see the parallelized implementations insl wrote:I want to make a run() statement that works both on a single computer (started without mpi) and on a cluster. run() itself doesn't work.
Yes, indeed they do. As I said, it was my mistake of not calling stdinit() before calling pc.psolve() that was causing my issues. One slight difference remains between run() and psolve() in that I couldn't yet make psolve() work properly with the GUI, but that is just a matter of having a gui (that uses run() ) and a non-gui (that uses psolve()) versions of my model available: a far more tenable distinction than the one I thought I had to make, since it's not like GUI works with in the mpi mode anyway.Are you sure that's necessary? For examples of code that works just fine on single processor boxes without mpi, and on clusters with mpi