I use OSCAR to run both serial and parallel jobs simultaneously. The
parallelism in OSCAR will either come from a shaded memory approach,
like OpenMP, if you have multiple processors in a node, or a distributed
approach like MPI. Your code has to be built to use the parallelism.
Now as to getting PBS to run the jobs.
Here is a good template PBS script, not all of these options are
required, but this gives you an idea of what you can do with a PBS
script.
[EMAIL PROTECTED] 40]$ cat /home/scripts/pbs.template
#!/bin/csh
#
# file: pbs.template
#
# purpose: template for PBS (Portable Batch System) script
#
# remarks: a line beginning with # is a comment;
# a line beginning with #PBS is a pbs command;
# assume (upper/lower) case to be sensitive;
#
# use: submit job with
# qsub pbs.template
#
# job name (default is name of pbs script file)
#PBS -N myjob
#
# resource limits: number of CPUs to be used
#PBS -l ncpus=25
#
# resource limits: amount of memory to be used
#PBS -l mem=213mb
#
# resource limits: max. wall clock time during which job can be running
#PBS -l walltime=3:20:00
#
#
# path/filename for standard output
#PBS -o mypath/my.out
#
# path/filename for standard error
#PBS -e mypath/my.err
#
# queue name, one of {default, special express}
# The default queue, "default", need not be specified
#PBS -q default
#
# group account (for example, g12345) to be charged
#PBS -W group_list=g12345
#
# files to be copied to execution server before script processing starts
# usage: -W [EMAIL PROTECTED]:remote-filename
#PBS -W [EMAIL PROTECTED]:runs/input/my.input
#
# files to be copied from execution server after script processing
# usage: -W [EMAIL PROTECTED]:remote-filename
#PBS -W [EMAIL PROTECTED]:runs/output/my.outout
#
# start job only after MMDDhhmm, where M=Month, D=Day, h=hour, m=minute
# e.g., July 4th, 14:30
#PBS -a 07041430
#
# send me mail when job begins
#PBS -m b
# send me mail when job ends
#PBS -m e
# send me mail when job aborts (with an error)
#PBS -m a
# if you want more than one message, you must group flags on one line,
# otherwise, only the last flag selected executes:
#PBS -mba
#
# do not rerun this job if it fails
#PBS -r n
#
# export all my environment variables to the job
#PBS -V
#
#
# Using PBS - Environment Variables
# When a batch job starts execution, a number of environment variables
are
# predefined, which include:
#
# Variables defined on the execution host.
# Variables exported from the submission host with
# -v (selected variables) and -V (all variables).
# Variables defined by PBS.
#
# The following reflect the environment where the user ran qsub:
# PBS_O_HOST The host where you ran the qsub command.
# PBS_O_LOGNAME Your user ID where you ran qsub.
# PBS_O_HOME Your home directory where you ran qsub.
# PBS_O_WORKDIR The working directory where you ran qsub.
#
# These reflect the environment where the job is executing:
# PBS_ENVIRONMENT Set to PBS_BATCH to indicate the job is a batch
job, or
# to PBS_INTERACTIVE to indicate the job is a PBS
interactive job.
# PBS_O_QUEUE The original queue you submitted to.
# PBS_QUEUE The queue the job is executing from.
# PBS_JOBID The job's PBS identifier.
# PBS_JOBNAME The job's name.
###
--__--__--
Message: 11
Date: Tue, 2 Sep 2003 09:59:08 +0800
From: "Sundaram A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [Oscar-users] PBS Job submission Issue,
This is a multi-part message in MIME format.
------_=_NextPart_001_01C370F5.CBBCDF22
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Dear All,
=20
I have installed Oscar and the installation was successful. Is Oscar is
capable to run serial and parallel jobs concurrently. if yes please
advise me how to run it. And the another question is how to submit a job
to the workq, what are the requirements, is there any sample codes
available for testing. =20 regards
Sundar
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Oscar-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-users