50b0a79b90
* While packaging in RDO, rpmlints are failing by giving non-executable script errors, we need to remove the shebang from rally/plugins/workload/siege.py as it lies with in the rally package. * unpack_plugins_samples.sh, instance_linpack.sh, instance_test.sh scripts does have executable permissions. we need to set the same for the same to avoid rpmlint errors[1.]. [1.] https://review.rdoproject.org/r/#/c/7007/5/openstack-rally.spec@105 Change-Id: Ibcab4b45a8d9dc06bf5bfbe0d8262f571da87eee
26 lines
920 B
Bash
Executable File
26 lines
920 B
Bash
Executable File
#!/bin/sh
|
|
# Location of Linpack binary
|
|
LINPACK='/opt/linpack/xlinpack_xeon64'
|
|
type -P $LINPACK &>/dev/null && continue || { echo "Linpack Not Found"; exit 1 }
|
|
|
|
# Location to create linpack dat file
|
|
LINPACK_DAT='~/linpack.dat'
|
|
|
|
NUM_CPU=`cat /proc/cpuinfo | grep processor | wc -l`
|
|
export OMP_NUM_THREADS=$NUM_CPU
|
|
echo "Sample Intel(R) LINPACK data file (from lininput_xeon64)" > ${LINPACK_DAT}
|
|
echo "Intel(R) LINPACK data" >> ${LINPACK_DAT}
|
|
echo "1 # number of tests" >> ${LINPACK_DAT}
|
|
echo "10514 # problem sizes" >> ${LINPACK_DAT}
|
|
echo "20016 # leading dimensions" >> ${LINPACK_DAT}
|
|
echo "2 # times to run a test " >> ${LINPACK_DAT}
|
|
echo "4 # alignment values (in KBytes)" >> ${LINPACK_DAT}
|
|
OUTPUT=$(${LINPACK} < ${LINPACK_DAT} | grep -A 1 Average | grep 20016)
|
|
AVERAGE=$(echo $OUTPUT | awk '{print $4}')
|
|
MAX=$(echo $OUTPUT | awk '{print $5}')
|
|
|
|
echo "{
|
|
\"average_gflops\": $AVERAGE,
|
|
\"max_gflops\": $MAX
|
|
}"
|