#!/bin/sh # @ job_type = parallel # @ input = /dev/null # @ output = $(Executable).$(Cluster).$(Process).out # @ error = $(Executable).$(Cluster).$(Process).err # @ initialdir = /homesp/sayede/TiC # @ notify_user = sayede_adlane@univ-artois.fr # @ class = PC # @ notification = complete # @ checkpoint = no # @ restart = no # @ total_tasks = 5 # @ preferences = (Machine == "bb5") # @ environment= MP_PROCS=$(total_tasks) # @ requirements = (Arch == "R6000") && (OpSys == "AIX51") && (Machine == "bb5") ### @ network.MPI = css0,not_shared,US # @ network.MPI = css0,shared,US # @ queue ##################Edit here your parameters############################# echo $LOADL_PROCESSOR_LIST > myhosts # _PROCESSOR_LIST where the job will be exec export np=5; #nbr of PROCESSORS = total_tasks export k1=35; #kpoint distribution, repeat until k$np export k2=35; export k3=35; export k4=35; export k5=35; #######################Dont edit bellow################################### rm -fr .machines awk ' {for (x=1;x< ENVIRON ["np"]+1;x++) print "k"x":"$x }' myhosts > machines x=1; while [ "$x" -le $np ]; do eval z=`echo '$'"k$x"`; grep k$x machines | awk 'BEGIN { FS = ":" } { print $2 }' | sed "s/^/$z:/" >>.machines; x=$(expr $x + 1); done echo "granularity:1" >> .machines rm -fr machines myhosts #######################your job####################################### run_lapw -ec 0.0001 -p