Re: [slurm-users] Using "Environment Modules" in a SLURM script

2021-01-24 Thread Yair Yarom
We also use the lmod system. We found that besides the user's shell, it also depends on how you install it. I.e. need to be active for general shell and not just for login shells (bashrc vs. profile). Also, for e.g. /bin/sh, it might not read any init file at all. As we might have different module

Re: [slurm-users] Using "Environment Modules" in a SLURM script

2021-01-22 Thread Peter Kjellström
On our slurm clusters the module system (Lmod) works without extra init in job scripts due to the environment-forwarding in slurm. "module" in the submitting context (in bash) on the login node is an "exported" function and as such makes it across. /Peter On Fri, 22 Jan 2021 10:41:06 + Gestió

Re: [slurm-users] Using "Environment Modules" in a SLURM script

2021-01-22 Thread Thomas M. Payerle
On our clusters, we typically find that an explicit source of the initialization dot files is need IF the default shell of the user submitting the job does _not_ match the shell being used to run the script. I.e., for sundry historical and other reasons, the "default" login shell for users on our

[slurm-users] Using "Environment Modules" in a SLURM script

2021-01-22 Thread Gestió Servidors
Hello, I use "Environment Modules" (http://modules.sourceforge.net/) in my SLURM cluster. In my scripts I do need to add an explicit "source /soft/modules-3.2.10/Modules/3.2.10/init/bash". However, in several examples I have read about SLURM scripts, nobody comments that. So, have I forgotten a