Git Product home page Git Product logo

Comments (11)

samnemo avatar samnemo commented on May 14, 2024

from hnn.

ramcdougal avatar ramcdougal commented on May 14, 2024

Do any of the tutorials work?

If not, does NEURON load successfully?

e.g. if you do

cd ~/hnn
python

and then in python try "import neuron", does it succeed or fail?

If it fails, try:

cd ~/hnn
rm -fr x86_64
nrnivmodl mod/

and then see if the previous test now succeeds or fails.

from hnn.

ramcdougal avatar ramcdougal commented on May 14, 2024

One other thing to check:

Does typing "python" load Python 2 or Python 3? (It should say in the banner.)

from hnn.

axiezai avatar axiezai commented on May 14, 2024

After some digging, it seems that the newer versions of MacOS doesn't include openMPI, which is required to run HNN simulations I assume? After installing I am now seeing the following:

Starting simulation. . .
*** An error occurred in MPI_Init_thread
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
*** and potentially your MPI job)
[iMac-Pro.radiology.ucsf.edu:44424] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!
[iMac-Pro.radiology.ucsf.edu:44424] OPAL ERROR: Not initialized in file pmix2x_client.c at line 109
[iMac-Pro.radiology.ucsf.edu:44425] OPAL ERROR: Not initialized in file pmix2x_client.c at line 109

does this help?

from hnn.

axiezai avatar axiezai commented on May 14, 2024

hi @ramcdougal
"import neuron" works

Python version is 3.6.5

from hnn.

ramcdougal avatar ramcdougal commented on May 14, 2024

Just to confirm: Are you using Anaconda Python?

I would have expected doing the conda install of mpi4py to install openmpi, but you can try removing the openmpi you installed and explicitly doing the conda install of openmpi:

sudo conda install -c mpi4py openmpi 

(sudo is assuming you've installed for all users; if it's a local install, do not use "sudo").

from hnn.

axiezai avatar axiezai commented on May 14, 2024

I did the conda install for mpi4py and openmpi, loaded the tutorial parameters, clicked run simulation and now i'm getting the following:

Starting simulation. . .

[iMac-Pro.radiology.ucsf.edu:46680] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46680] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46683] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122

[iMac-Pro.radiology.ucsf.edu:46683] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46683] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46684] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46684] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46685] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122

[iMac-Pro.radiology.ucsf.edu:46685] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46685] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122

[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46689] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46689] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46690] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122

[iMac-Pro.radiology.ucsf.edu:46690] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46690] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122

[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46692] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46692] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46681] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46682] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46686] PMIX ERROR: UNPACK-PAST-END in file unpack.c at line 122
[iMac-Pro.radiology.ucsf.edu:46686] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46687] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46693] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46694] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46695] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46684] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46686] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46688] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46687] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
[iMac-Pro.radiology.ucsf.edu:46691] PMIX ERROR: SUCCESS in file event/pmix_event_registration.c at line 91
WARN: could not read simulation outputs: dict_values(['/Users/ashish/hnn/data/OnlyRhythmicProx/dpl.txt', '/Users/ashish/hnn/data/OnlyRhythmicProx/rawspec.npz', '/Users/ashish/hnn/data/OnlyRhythmicProx/spk.txt', '/Users/ashish/hnn/data/OnlyRhythmicProx/param.txt'])

from hnn.

nrnhines avatar nrnhines commented on May 14, 2024

To help diagnose. results of the following tests may be useful. Run tests in a terminal.

  1. Does mpi work?
    <
    $ mpiexec -n 2 echo "hello"
    hello
    hello
  1. does nrniv work without mpi and python
    <
    nrniv -nobanner -nopython -c '{print "hello" quit()}'
    hello
  1. do nrniv and mpi work together but without python
    <
    $ mpiexec -n 2 nrniv -nobanner -nopython -mpi -c '{print "hello" quit()}'
    numprocs=2
    hello
    hello
  1. can you launch nrniv and use python
    <
    $ nrniv -nobanner -python -c 'from neuron import h; print("Hello"); h.quit()'
    Hello
  1. do all three work when launching nrniv
    <
    $ mpiexec -n 2 nrniv -nobanner -mpi -python -c 'from neuron import h; pc = h.ParallelContext(); print ("I am %d of %d" % (int(pc.id()), int(pc.nhost()))); h.quit()'
    numprocs=2
    I am 0 of 2
    I am 1 of 2

from hnn.

vogdb avatar vogdb commented on May 14, 2024

@axiezai

I've recently installed HNN. I had the same problem as you. Additionally if you look View->View Simulation Log, you might see a more detailed message. In my case it was
screen shot 2018-11-21 at 19 15 34

Try loading openmpi
load_mpi: dlopen(libmpi.dylib, 10): image not found
Is openmpi installed? If not in default location, need a LD_LIBRARY_PATH.
could not dynamically load libmpi.so or libmpich2.so

To solve it I pointed LD_LIBRARY_PATH to the dir containing libmpi.dylib. I had a separate conda's env hnn for HNN, so I added the below line to my ~/.profile(don't forget to log out) and everything started working.

export LD_LIBRARY_PATH=~/anaconda2/envs/hnn/lib/

You also can use Mac's search utilities to find your libmpi.dylib location.

from hnn.

blakecaldwell avatar blakecaldwell commented on May 14, 2024

@vogdb thanks for the instructions above.

This error can come about in at least a couple of ways. Even if LD_LIBRARY_PATH is set to where libmpi.dylib exists, the error may not be resolved if libmpi.10.dylib does not exist. I needed to create a link:

cd $CONDA_PREFIX/lib
ln -s libmpi.1.dylib libmpi.10.dylib

I don't know where the 10 comes from. Perhaps @ramcdougal has some insight from the NEURON macOS installer?

from hnn.

axiezai avatar axiezai commented on May 14, 2024

I'm glad @vogdb and @blakecaldwell provided some easy solutions!

To be honest, I don't have access to the Mac machine I did this install on anymore, it wasn't my Mac :(

So I can't provide more info on my end, apologies. If we can confirm thatextra 10 in libmpi.10.dylib isn't an issue, perhaps we can close this?

Thanks again for all the help and debugging! Really grateful :)

from hnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.