Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| testu01 [2015/03/02 07:24] – créée admin | testu01 [2015/03/02 07:43] (Version actuelle) – [SGE script] admin | ||
|---|---|---|---|
| Ligne 9: | Ligne 9: | ||
| * To load the software, use:< | * To load the software, use:< | ||
| + | * To compile a program called birth1.c for example, one may use | ||
| + | <code bash> | ||
| + | $ gcc birth1.c -o birth1 -ltestu01 -lprobdist -lmylib -lm | ||
| + | |||
| + | (or | ||
| + | |||
| + | $ gcc birth1.c -o birth1 -ltestu01 -lprobdist -lmylib -lgmp -lm | ||
| + | |||
| + | </ | ||
| ====== SGE script ====== | ====== SGE script ====== | ||
| + | |||
| + | From your WORK directory create a sccript like this: | ||
| + | |||
| + | <file bash script.sge> | ||
| + | |||
| + | #!/bin/bash -l | ||
| + | #$ -V | ||
| + | #$ -N test_sge | ||
| + | #$ -cwd | ||
| + | #$ -o $JOB_NAME.$JOB_ID.out | ||
| + | |||
| + | #$ -q all.q | ||
| + | #$ -l h_vmem=4G | ||
| + | |||
| + | ./myProgram myPramas | ||
| + | |||
| + | </ | ||
| + | |||
| + | And than submite your job to SGE : | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | $qsub script.sge | ||
| + | |||
| + | </ | ||
| + | |||
| + | ====== Links ====== | ||
| + | * http:// | ||