Skip to content
Snippets Groups Projects
Commit 1b90d6e1 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

change organization

parent 7b1880de
No related branches found
No related tags found
1 merge request!11Add submit pol wrapper
File moved
File moved
File moved
...@@ -133,8 +133,7 @@ def main(): ...@@ -133,8 +133,7 @@ def main():
cmd = f'{cmd} --with-dirs' cmd = f'{cmd} --with-dirs'
print(f"Command: {cmd}") print(f"Command: {cmd}")
proc = subprocess.run(cmd,shell=True) subprocess.run(cmd,shell=True)
proc.communicate()
exit() exit()
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -12,7 +12,8 @@ mem_per_cpu="8G" ...@@ -12,7 +12,8 @@ mem_per_cpu="8G"
time="24:00:00" time="24:00:00"
partition="amd-hdr100,medium" partition="amd-hdr100,medium"
outdir="/data/rc/gpfs-policy/data" outdir="/data/rc/gpfs-policy/data"
policy="./policy/list-path-external" policy="./policy-def/list-path-external"
policy_dirplus="./policy-def/list-path-dirplus"
outfile="" outfile=""
############################################################ ############################################################
...@@ -80,15 +81,15 @@ eval set -- ${args} ...@@ -80,15 +81,15 @@ eval set -- ${args}
while : while :
do do
case $1 in case $1 in
-h | --help) help ;; -h | --help) help ;;
-o | --outdir) outdir=$2 ; shift 2 ;; -o | --outdir) outdir=$2 ; shift 2 ;;
-f | --outfile) outfile=$2 ; shift 2 ;; -f | --outfile) outfile=$2 ; shift 2 ;;
--with-dirs) policy="./policy/list-path-dirplus" ; shift 1 ;; --with-dirs) policy="${policy_dirplus}" ; shift 1 ;;
-N | --nodes) nodes=$2 ; shift 2 ;; -N | --nodes) nodes=$2 ; shift 2 ;;
-c | --cores) cores=$2 ; shift 2 ;; -c | --cores) cores=$2 ; shift 2 ;;
-p | --partition) partition=$2 ; shift 2 ;; -p | --partition) partition=$2 ; shift 2 ;;
-t | --time) time=$2 ; shift 2 ;; -t | --time) time=$2 ; shift 2 ;;
-m | --mem-per-cpu) mem_per_cpu=$2 ; shift 2 ;; -m | --mem-per-cpu) mem_per_cpu=$2 ; shift 2 ;;
--) shift; break ;; --) shift; break ;;
*) >&2 echo Unsupported option: $1 *) >&2 echo Unsupported option: $1
usage ;; usage ;;
...@@ -107,6 +108,8 @@ if [[ -z "$device" ]]; then ...@@ -107,6 +108,8 @@ if [[ -z "$device" ]]; then
usage usage
fi fi
slurm_out="out/pol-%A-$(basename ${policy})-$(basename ${device}).out"
DIR=$outdir POLICYFILE=$policy FILESYSTEM=${device} OUTFILE=${outfile} && \ DIR=$outdir POLICYFILE=$policy FILESYSTEM=${device} OUTFILE=${outfile} && \
DIR=$DIR POLICYFILE=$POLICYFILE FILESYSTEM=${FILESYSTEM} OUTFILE=${OUTFILE} \ DIR=$DIR POLICYFILE=$POLICYFILE FILESYSTEM=${FILESYSTEM} OUTFILE=${OUTFILE} \
sbatch \ sbatch \
...@@ -115,4 +118,5 @@ sbatch \ ...@@ -115,4 +118,5 @@ sbatch \
-t $time \ -t $time \
--mem-per-cpu=$mem_per_cpu \ --mem-per-cpu=$mem_per_cpu \
-p $partition \ -p $partition \
-o ${slurm_out} \
./run-mmpol.sh ./run-mmpol.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment