[Nek5000-users] Parallel on several nodes

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Thu Jan 15 12:16:14 CST 2015


Hi Tanmoy,

Many thanks for prompt and very useful response.

On 1/14/2015 11:06 PM, nek5000-users at lists.mcs.anl.gov wrote:
> Hi Saleh,
>
> You can develop a shell script (for example a PBS script for your 
> cluster), a .sh file, that you can submit to the queue. The .sh file 
> would be very similar to the nekbmpi script, with some extra headers, 
> that will specify, the number of nodes, type of job, wall clock time etc.
>
> ************************************************************************************************************
> #! /bin/bash
>
> #PBS -N turbChannel
> #PBS -l walltime=400:00:00
> #PBS -l nodes=6:ppn=16
> #PBS -j oe
> #PBS -o sparkyLog
>
> cd $PBS_O_WORKDIR
>
>
> jobName=turbChannel #name of the *.rea file
> nprocs=96    #number of processors
>
> echo $jobName        > SESSION.NAME <http://SESSION.NAME>
> echo `pwd`'/' >> SESSION.NAME <http://SESSION.NAME>
> touch $jobName.rea
> rm -f logfile
> rm -f ioinfo
> mv $jobName.log.$nprocs $jobName.log1.$nprocs
> mv $jobName.sch $jobName.sch1
> mpiexec ./nek5000 > $jobName.log.$nprocs
> sleep 2
> ln $jobName.log.$nprocs logfile
> rm -f SESSION.NAME <http://SESSION.NAME>
>
> **************************************************************************************************************
>
> You can see a PBS script that I use to run the job; the script name 
> staring from jobname, is  just the script of nekbmpi with the running 
> variable names replaced by specific numeric and strings (jobname, 
> number of processors etc.)
>
> HtH,
> Tanmoy
>
> Best Regards,
> Tanmoy
>
> On Wed, Jan 14, 2015 at 8:57 PM, <nek5000-users at lists.mcs.anl.gov 
> <mailto:nek5000-users at lists.mcs.anl.gov>> wrote:
>
>     Hi guys,
>
>     I have a naive questions but I couldn't find my answer in existing
>     posts.
>
>     Is it possible to run Nek on several nodes, say, on a cluster? If
>     so, which script should be used?
>
>     A command like   /nekmpi eddy_uv 4/ does not help becaue on each
>     node I have 8 CPUs but I'd like to have my 16 nodes (each have 12
>     CPUs) run together.
>
>     Any help is appreciated.
>
>     Saleh
>
>
>     _______________________________________________
>     Nek5000-users mailing list
>     Nek5000-users at lists.mcs.anl.gov
>     <mailto:Nek5000-users at lists.mcs.anl.gov>
>     https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
>
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20150115/aba9e9c1/attachment.html>


More information about the Nek5000-users mailing list