daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. ##########################
  4. #       #
  5. # The PBS directives #
  6. #       #
  7. ##########################
  8. #PBS -q studenti
  9. #PBS -l nodes=8
  10. #PBS -N divisione_condivisa
  11. #PBS -o divisione_condivisa.out
  12. #PBS -e divisione_condivisa.err
  13. ##########################################
  14. # -q coda su cui va eseguito il job #
  15. # -l numero di nodi richiesti #
  16. # -N nome job(stesso del file pbs) #
  17. # -o, -e nome files contenente l'output #
  18. ##########################################
  19. # #
  20. # qualche informazione sul job #
  21. # #
  22. ##########################################
  23.  
  24. NCPU=`wc -l < $PBS_NODEFILE`
  25. echo ------------------------------------------------------
  26. echo ' This job is allocated on '${NCPU}' cpu(s)'
  27. echo 'Job is running on node(s): '
  28. cat $PBS_NODEFILE
  29.  
  30. PBS_O_WORKDIR=$PBS_O_HOME/$PBS_JOBNAME
  31. echo ------------------------------------------------------
  32. echo PBS: qsub is running on $PBS_O_HOST
  33. echo PBS: originating queue is $PBS_O_QUEUE
  34. echo PBS: executing queue is $PBS_QUEUE
  35. echo PBS: working directory is $PBS_O_WORKDIR
  36. echo PBS: execution mode is $PBS_ENVIRONMENT
  37. echo PBS: job identifier is $PBS_JOBID
  38. echo PBS: job name is $PBS_JOBNAME
  39. echo PBS: node file is $PBS_NODEFILE
  40. echo PBS: current home directory is $PBS_O_HOME
  41. echo PBS: PATH = $PBS_O_PATH
  42. echo ------------------------------------------------------
  43. echo "Eseguo/usr/lib64/openmpi/1.4-gcc/bin/mpicc -o $PBS_O_WORKDIR/$PBS_JOBNAME $PBS_O_WORKDIR/$PBS_JOBNAME.c"
  44. /usr/lib64/openmpi/1.4-gcc/bin/mpicc -o $PBS_O_WORKDIR/$PBS_JOBNAME $PBS_O_WORKDIR/$PBS_JOBNAME.c
  45. echo "Eseguo:/usr/lib64/openmpi/1.4-gcc/bin/-machinefile $PBS_NODEFIL E -np $NCPU $PBS_O_WORKDIR/$PBS_JOBNAME"
  46. /usr/lib64/openmpi/1.4-gcc/bin/mpiexec -machinefile $PBS_NODEFILE -np $NCPU $PBS_O_WORKDIR/$PBS_JOBNAME 200
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top