[gridengine users] .sge_request

Joseph Farran jfarran at uci.edu
Tue Jul 17 22:22:52 UTC 2012


On 07/13/2012 03:00 AM, Reuti wrote:
>
> Besides using the "starter_method" we discussed last week, it's also possible to use a job prolog to change the value in the environment file:
>
> $ cat prolog.sh
> #!/bin/sh
> sed -i "/^OMP_NUM_THREADS/d;\$aOMP_NUM_THREADS=$NSLOTS" $SGE_JOB_SPOOL_DIR/environment
>
> $ qconf -sq all.q
> ...
> prolog                sgeadmin@/usr/sge/cluster/prolog.sh
>
> $ cat job.sh
> #!/bin/sh
> echo $OMP_NUM_THREADS
>
> $ qsub -q all.q -pe openmpi 4 job.sh
> Your job 4489 ("job.sh") has been submitted
>
> $ cat job.sh.o4489
> 4
>
> -- Reuti
>

Reuti.   Your option of using a prolong.sh file works great thanks.

One question.   I am getting control-characters inserted at the end in my .o files and I am not sure where they are coming from?

If I echo "Test" in my script, I get a .o file with "Test" plus control characters.    Here is an od output example:

$ od -c OUT.o5223.1
0000000   T   e   s   t  \n 033   [   H 033   [   J
0000013

Do you know where this is coming from?





More information about the users mailing list