Hi,

To eliminate this probelm, we use module like this in our cluster:

1/ the module must be visible in the PATH
2/ we use : #!/bin/bash -l at the begining of the script.
3/ we use -V to export env variables

here is an example of an MPI-SGE  script :

#!/bin/bash -l#$ -q mpi.q#$ -V#$ -N test_sge#$ -pe impi_tight 80#$ -o
$JOB_NAME.$JOB_ID.out#$ -e $JOB_NAME.$JOB_ID.err
 #### load module ompi

module load ompi
 ## execute MPI application

mpirun -machinefile $TMPDIR/machines   -np $NSLOTS ./appli_mpi


Hope this will help.

Regards.


On Wed, Nov 23, 2011 at 3:07 PM, Schmidt U. <[email protected]>wrote:

>  Dear all,
> I know, the problem was discusses one or two years before, but I still
> have trouble to eliminate messages in.err file:
> I'm using SGE 6.2u5 and for every allocated node of an openmpi job the sge
> job's error  file has two lines like this:
> */bin/bash: module: line 1: syntax error: unexpected end of file
> /bin/bash: error importing function definition for `module'*
> I defined in global bashrc:
> *MODULEPATH=...
> MODULESHOME=...
> alias module='/usr/bin/modulecmd bash $*'
> module load default_module*
> So far I do not need additional settings in the job script file concerning
> module environment, as well
> *#$ -V*
> is used.
> The both lines*  /bin/bash:...* in the err file have no effects, but even
> new users are sometimes rattled.
> Is anybody affected as well with this problem and found a solution to
> eliminate these messages ?
>
> Udo
>
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to