split_grp.sh 469 B

123456789101112131415161718192021
  1. #$ -cwd
  2. #$ -A weizhe.li
  3. #$ -l h_rt=048:00:00
  4. #$ -S /bin/sh
  5. #$ -j y
  6. # $ -N split_grp comes from split_main.sh
  7. echo "Running $SGE_TASK_ID of job $JOB_ID on $HOSTNAME"
  8. source /projects/mikem/UserSupport/weizhe.li/split_wsi/set_env.sh
  9. # Get params
  10. # source ./config.txt
  11. source $1
  12. FILE=$(awk "NR==$SGE_TASK_ID" $LISTFILE)
  13. export PYTHONUNBUFFERED=TRUE
  14. PROG=split_grp.py
  15. time python $PROG $FILE_DIR $FILE $PATCH_SIZE $SPLIT_SIZE $SPLIT_BASE_DIR