comparison bin/_runme.sh @ 364:bd931adc820b plus

working on new shrunk cdb en- and de-coding
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 07 Apr 2026 15:04:09 +0100
parents d921f4a569d8
children c5b4f3e9f909
comparison
equal deleted inserted replaced
363:d921f4a569d8 364:bd931adc820b
9 nodename=$SLURMD_NODENAME 9 nodename=$SLURMD_NODENAME
10 local=$SLURM_LOCALID 10 local=$SLURM_LOCALID
11 node=$SLURM_NODEID 11 node=$SLURM_NODEID
12 task=$SLURM_PROCID 12 task=$SLURM_PROCID
13 13
14 # Following has been removed from service for now... 14 # Not working
15 if [ "$1" = "-a" ] 15 if [ "$1" = "-a" ]
16 then 16 then
17 shift 17 shift
18 xarg="$1" 18 xarg="$1"
19 xa="run $1 " 19 xa="job $1 "
20 shift 20 shift
21 else 21 else
22 xarg= 22 xarg=
23 xa= 23 xa=
24 fi 24 fi
41 threadsPerJob=2 41 threadsPerJob=2
42 fi 42 fi
43 43
44 pjobs=$((c / $threadsPerJob)) 44 pjobs=$((c / $threadsPerJob))
45 45
46 echo $(date) ${xa}task $n.$task on $nodename:$N.$node start $pjobs jobs 1>&2 46 echo $(date) ${xa}task $n.$task on $nodename:$N.$node start $pjobs 1>&2
47 47
48 PATH=$W/$USER/bin:$W/shared/bin:$PATH 48 PATH=$W/$USER/bin:$W/shared/bin:$PATH
49 export task PATH n node xarg 49 export task PATH n node #xarg
50 50
51 if [ "$1" = "-b" ] 51 if [ "$1" = "-b" ]
52 then 52 then
53 shift 53 shift
54 eval "$1" 54 eval "$1"
72 shift 72 shift
73 73
74 doit () { 74 doit () {
75 arg="$1" 75 arg="$1"
76 i="$2" 76 i="$2"
77 echo $(date) start $task $i "|$node|$arg|" 77 echo $(date) start $task $i "|$node|$arg|" # |$xarg
78 eval "$cmd" 78 eval "$cmd"
79 echo $(date) end $task $i 79 echo $(date) end $task $i
80 } 80 }
81 81
82 export -f doit 82 export -f doit