PBS for GPAW
1#!/bin/bash
2
3#PBS -N Al201
4#PBS -l nodes=1:ppn=56
5#PBS -l walltime=12:00:00
6#PBS -q n56
7#PBS -r n
8#PBS -e err
9#PBS -o out
10
11export OMP_NUM_THREADS=1
12
13echo Time is `date`
14echo Working dir is $PBS_O_WORKDIR
15cd $PBS_O_WORKDIR
16
17NPROCS=`wc -l < ${PBS_NODEFILE}`
18N_NODE=`uniq ${PBS_NODEFILE}|wc -l`
19
20echo This job has allocated ${N_NODE} nodes with ${NPROCS} processors
21echo Running on host `hostname`
22echo This jobs runs on the following processors:
23echo "**Start"
24
25echo $PBS_O_WORKDIR > work.txt
26echo ${PBS_NODEFILE} > nodefile.txt
27echo $NPROCS > cpucore.txt
28echo $N_NODE > node.txt
29
30source ~/.bashrc #加载.bashrc文件 加载GPAW环境变量
31
32export STARTTIME=`date +%s.%3N` # start time
33export WALLTIME=12:00:00 # wall time
34
35mpiexec -np ${NPROCS} gpaw python gs.py
36#mpiexec -np ${NPROCS} gpaw python gsc.py
37
38echo "**Finished!"