[GE users] Parameter sweep application

Reuti reuti at staff.uni-marburg.de
Thu Apr 20 11:53:43 BST 2006


Depends, you could use an array in the bash script and submit an  
array job:

argExp=(par1 par2 par3 ...)
$executable ${argExp[$SGE_TASK_ID]} > $outpath$SGE_TASK_ID

and submit with:

qsub -t 0-99 job.sh


HTH - Reuti


Am 20.04.2006 um 12:19 schrieb Massimo Canonico:

> Hi,
> I'm newbie in GE.
>
> If I must run 100 experiments where the executable, the output path  
> and the input path are always the same,  is there a way to specify  
> all jobs in one bash file?
>
> something like this:
> ------------
> !#/bin/bash
>
> $exepath = /home/mex/sig
> $outpath = /mayhem/sealion/mex
>
> $executable      = $(exepath)/Negative
>
> $argExp1 = -par1
> $argExp2 = -par2
> ...
> $argExp100 = -par100
>
> for ((i=1; i < 100; i++)) do $executable $argExp$i > $outpath$i; done
>
> ----------------------------------
>
> Must I write a script that generates 100 bash files or is there a  
> smart solution?
>
> I know that in other batch schedulers like condor it is possible  
> using just one file.
>
> Cheers,
> Massimo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list