Hi.
On a cluster I have a custom installation of NEURON 7.5 (October build) compiled with a Python 2.7.12 module, installed on the machine.
The problem arise in the way I try to compile the MOD files:
1) if I manually load the python module, the path to NEURON and start the virtual environment, containing numpy, scipy, etc, than I can compile the MOD files without problems. In this case i remain on the login node.
2) if I do the same module load, path and virtualenv, with a sbatch script, when the compute node try to compile the MOD files, it does all of them but then it stops with:
/usr/bin/ld: cannot find -lreadline
collect2: error: ld returned 1 exit status
make: *** [libnrnmech.la] Error 1
What can cause this error?
Best regards
Stefano Masoli PhD
Error in MOD compilation with a Slurm script
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Error in MOD compilation with a Slurm script
nrnivmodl is a standalone executable, independent of NEURON's computational engine which is used to execute simulations. I'd expect that compilation of mod files should just work, period, unless your sbatch script does something to PATH that prevents nrnivmodl from finding a library that it needs.
Re: Error in MOD compilation with a Slurm script
Just as you built nrniv and all the NEURON libraries on the login node. So should you translate mod files and build the libnrnmech.so file on the
login node (with nrnivmodl). In your case, it sounds like compute nodes are the same architecture as the login node and most of the development
environment is available on them. The question then is why libreadline is available on the login node but not (one of) the compute nodes.
login node (with nrnivmodl). In your case, it sounds like compute nodes are the same architecture as the login node and most of the development
environment is available on them. The question then is why libreadline is available on the login node but not (one of) the compute nodes.
Re: Error in MOD compilation with a Slurm script
Hi.
The admin of the cluster installed libreadline, on the compute nodes, and i was able to compile the MODs and run the simulations.
Thank you
Stefano
That was the cause of the issue.The question then is why libreadline is available on the login node but not (one of) the compute nodes.
The admin of the cluster installed libreadline, on the compute nodes, and i was able to compile the MODs and run the simulations.
Thank you
Stefano