SHARE
TWEET

powerfit.sh

marcoverl Jul 14th, 2016 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. driver=$(nvidia-smi | awk '/Driver Version/ {print $6}')
  3. echo hostname=$(hostname)
  4. echo user=$(id)
  5. export WDIR=`pwd`
  6. echo udocker run powerfit...
  7. echo starttime=$(date)
  8. git clone https://github.com/indigo-dc/udocker
  9. cd udocker
  10. image=/cvmfs/wenmr.egi.eu/BCBR/PowerFit/powerfit-nvdrv_$driver.tar
  11. [ -f $image ] && ./udocker load -i $image
  12. [ -f $image ] || ./udocker pull indigodatacloudapps/powerfit:nvdrv_$driver
  13. echo time after pull = $(date)
  14. rnd=$RANDOM
  15. ./udocker create --name=powerfit-$rnd indigodatacloudapps/powerfit:nvdrv_$driver
  16. echo time after udocker create = $(date)
  17. mkdir $WDIR/out
  18. ./udocker run --hostnev --volume=$WDIR:/home powerfit-$rnd powerfit /home/1046.map 46.0 /home/GroES_1gru.pdb -a 4.71 -l -g -d /home/out
  19. nvidia-smi --query-accounted-apps=timestamp,pid,gpu_serial,gpu_name,gpu_utilization,time --format=csv
  20. echo time after udocker run = $(date)
  21. ./udocker rm powerfit-$rnd
  22. ./udocker rmi indigodatacloudapps/powerfit:nvdrv_$driver
  23. cd $WDIR
  24. tar zcvf results.tgz out/
  25. echo endtime=$(date)
RAW Paste Data
Top