-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running nrnivmodl -coreneuron #3332
Comments
Hi, can you try removing the |
Ok I get the following now when running this command: mpirun -vvv -n 4 x86_64/special -mpi /projects/kefo9343/software/spack/linux-rhel8-zen3/gcc-11.2.0/python-3.10.10-ggcucumyfl6hqjbdahvkqkq6h44nxdkj Neuron_Python_SAC_GA_stim_v3_0.py Please see the attached log file. Do you think there is an issue with my libnrniv.so and libc.so.6 libraries? |
Is your model, or a reduced size form of it, runnable (without gpu, or without coreneuron, or without MPI) on your desktop?
and that has nothing to do with mpi or coreneuron but during creation of a python reference to a NEURON section. It is not clear (though it might become clear with gdb) what line that segfault occurred. |
Sorry I realize that I did not call python correctly earlier in my command. I don't think the model was working either without gpu or MPI. However, I reran it properly by calling python and I got a "x86_64/special: syntax error" near line 1 of my python executable. I have attached the corresponding log. |
I did not notice the invalid argument to special in your earlier log. In your last log
the arg that specifies the python executable Also the argument that is needed to use Python for interactive terminal input instead of HOC is
|
Thank you! I ran the following: mpirun -vvv -n 4 x86_64/special -mpi -python Neuron_helloworld.py I also ran the following: mpirun -vvv -n 4 x86_64/special -mpi -pyexe $PYTHON_SPACK/bin/python3 Neuron_helloworld.py In both cases I got a segfault. I have attached the log with this message. I also then ran a few to make sure that I had a good build. For instance I ran this test.py code: https://bluebrain.github.io/CoreNeuron/doxygen/index.html I got the following error: python test.py
python: /projects/kefo9343/nrn/src/nrnpython/nrnpy_nrn.cpp:1057: NPySecObj *newpysechelp(Section *): Assertion `pysec->sec_ == sec' failed.
Aborted (core dumped) I also tried to run the test_direct.py example from here https://nrn.readthedocs.io/en/latest/coreneuron/examples.html nrniv -python test_direct.py
NEURON -- VERSION 9.0a-488-gdf306bd7b+ master (df306bd7b+) 2025-01-30
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2022
See http://neuron.yale.edu/neuron/credits
loading membrane mechanisms from x86_64/.libs/libnrnmech.so
Additional mechanisms from files
"mod/axial.mod" "mod/axial_pp.mod" "mod/bacur.mod" "mod/banocur.mod" "mod/fornetcon.mod" "mod/green.mod" "mod/invlfire.mod" "mod/netmove.mod" "mod/noisychan.mod" "mod/red.mod" "mod/sample.mod" "mod/watchrange2.mod" "mod/watchrange.mod"
nrniv: /projects/kefo9343/nrn/src/nrnpython/nrnpy_nrn.cpp:1057: NPySecObj *newpysechelp(Section *): Assertion `pysec->sec_ == sec' failed.
Aborted (core dumped) Finally, I did ran the ring tests and it seemed to pass successfully both on CPUs and GPUs: https://github.com/neuronsimulator/ringtest Does that benchmarking thus indicate that my neuron build was good? |
I did not experience an error with that test on my ubuntu 24.04 desktop with
And tested with
If you send me all the files (hoc, py, ses, mod) needed to run your model compressed into a zip file, I can see if it runs on my machine. Send to [email protected] |
Thank you very much! I just sent you an invitation to Dropbox. |
I'm afraid I did not get the invitation. If the zip file is less than 3 MB, just send it to me via email. |
Via zoom (with you sharing your screen) we were able to experience a segfault only when using a build with the cmake args
where pv was an invalid address
We tried various work arounds, e.g.
did not fix the problem. Comparing to nullptr did not fix the problem. And forcing pv to 0 if it is less than 0x10 merely delayed the issue to an assertion error for the next call to
I've installed the NVIDIA HPC SDK on my machine but have been unable to reproduce the issue. Here are my notes in regard to that.
The LINK FLAGS differences between GPU on and off are
|
Context
I get an error after building Neuron with gpu, when it comes to run it.
I tried to rebuild it with different nvhpc_sdk and gcc versions as well.
This is following up from this issue
I have issues when calling nrnivmodl -coreneuron
I also have a problem with my x86_64/.libs/libnrnmech.so library.
I get a
x86_64/.libs/libnrnmech.so: undefined symbol: use_cachevec
error.I have attached the logs.
The text was updated successfully, but these errors were encountered: