Re: [slurm-users] Strange behaviour with dynamically linked binary in batch job

2022-03-31 Thread Stephen Cousins
Is using "#!/bin/bash -l" enough to make it work? On Thu, Mar 31, 2022 at 6:46 AM Sebastian Potthoff < s.potth...@uni-muenster.de> wrote: > Just a quick follow up, that I could resolve the issue. Maybe this helps > someone in the future. > > $BASH_ENV was pointing to a deprecated script, resetti

Re: [slurm-users] Strange behaviour with dynamically linked binary in batch job

2022-03-31 Thread Sebastian Potthoff
Just a quick follow up, that I could resolve the issue. Maybe this helps someone in the future. $BASH_ENV was pointing to a deprecated script, resetting the module environment. This only is an issue for non-interactive, non-login shells (i.e. sbatch) and the issue was therefore not seen when r

Re: [slurm-users] Strange behaviour with dynamically linked binary in batch job

2022-03-30 Thread Sebastian Potthoff
Hi Noam, Thanks for your suggestion - I already did this and confirmed the modules and LD_LIBARARY_PATH are set correctly. Also if there was something wrong here, all of this would not work with self-compiled binaries, which it does… which baffles me :-/ > Am 30.03.2022 um 17:51 schrieb Berns

Re: [slurm-users] Strange behaviour with dynamically linked binary in batch job

2022-03-30 Thread Bernstein, Noam CIV USN NRL (6393) Washington DC (USA)
One possibility is that something about the environment in the running batch job is making the "module load" commands fail, which they can do without any error (for old fashioned tcl-based env modules). Do "module list" after, and echo $LD_LIBRARY_PATH, to confirm that it really is being set co

[slurm-users] Strange behaviour with dynamically linked binary in batch job

2022-03-30 Thread Sebastian Potthoff
Hi all, I am observing some strange behaviour with a dynamically linked binary inside an sbatch job. This binary is, among others, compiled against the MPICH library - so when I do an „ldd“ I get $ ldd /path/to/binary linux-vdso.so.1 => (0x7ffd817c5000) libdl.so.2 => /lib