[Swift-commit] r4397 - in test: . beagle-tests
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Thu Apr 21 12:35:32 CDT 2011
Author: wozniak
Date: 2011-04-21 12:35:32 -0500 (Thu, 21 Apr 2011)
New Revision: 4397
Added:
test/beagle-tests/
test/beagle-tests/README.txt
test/beagle-tests/pbs-test.sh
test/beagle-tests/spin.sh
test/beagle-tests/test-01-01-24.submit
Log:
Beagle test shell scripts
Added: test/beagle-tests/README.txt
===================================================================
--- test/beagle-tests/README.txt (rev 0)
+++ test/beagle-tests/README.txt 2011-04-21 17:35:32 UTC (rev 4397)
@@ -0,0 +1,8 @@
+
+Simple tests to verify the number of
+cores given on the Beagle PBS system.
+
+You can run sleep or spin as the user job.
+spin.sh is good to verify that you are
+actually getting the full performance of all
+of the requested cores.
Added: test/beagle-tests/pbs-test.sh
===================================================================
--- test/beagle-tests/pbs-test.sh (rev 0)
+++ test/beagle-tests/pbs-test.sh 2011-04-21 17:35:32 UTC (rev 4397)
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+JOBS=$1
+DURATION=$2
+
+echo $JOBS $DURATION
+
+SPIN=/home/wozniak/pbs-tests/spin.sh
+
+job()
+{
+ ID=$1
+
+ START=$( date +%s )
+
+ HOST=$( hostname )
+ # sleep ${DURATION}
+ ${SPIN} ${DURATION}
+
+ STOP=$( date +%s )
+
+ echo "${ID}: ${HOST} ${START} ${STOP}"
+}
+
+for (( i=0 ; i<$JOBS ; i++ ))
+do
+ echo fork
+ job ${i} &
+done
+
+wait
+
+exit 0
Property changes on: test/beagle-tests/pbs-test.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: test/beagle-tests/spin.sh
===================================================================
--- test/beagle-tests/spin.sh (rev 0)
+++ test/beagle-tests/spin.sh 2011-04-21 17:35:32 UTC (rev 4397)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# On the Beagle compute node: 1 MLOOP = 22 sec
+
+MLOOPS=$1
+
+M=$(( 1024*1024 ))
+X=0
+for (( j=0 ; j<${M} ; j++ ))
+do
+ for (( i=0 ; i<${MLOOPS} ; i++ ))
+ do
+ (( X++ ))
+ (( X = X % 4000 ))
+ done
+done
+
+exit 0
Property changes on: test/beagle-tests/spin.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: test/beagle-tests/test-01-01-24.submit
===================================================================
--- test/beagle-tests/test-01-01-24.submit (rev 0)
+++ test/beagle-tests/test-01-01-24.submit 2011-04-21 17:35:32 UTC (rev 4397)
@@ -0,0 +1,14 @@
+
+#PBS -S /bin/bash
+#PBS -N Justin
+#PBS -m n
+#PBS -A CI-MCB000021
+#PBS -l mppwidth=1,mppnppn=1,mppdepth=24
+#PBS -l walltime=00:11:00
+#PBS -q batch
+WORKER_LOGGING_LEVEL=NONE
+#PBS -v WORKER_LOGGING_LEVEL
+# # #PBS -l advres=modFTDock.47
+
+aprun -n 1 -N 1 -cc none -d 24 -F exclusive \
+ ${HOME}/pbs-tests/pbs-test.sh 1 1
More information about the Swift-commit
mailing list