Skip to content

Commit

Permalink
Merge pull request #16 from redhat-performance/documenation
Browse files Browse the repository at this point in the history
Add documenation and make sure runs without any options
  • Loading branch information
dvalinrh authored Jul 13, 2023
2 parents 0ed3c31 + ff6942d commit 3a055c4
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Automation wrapper for linpack

Description:
The Linpack Benchmark is a measure of a computer's floating-point rate of execution.
It is determined by running a computer program that solves a dense system of linear
equations.

Location of useful documentation: https://www.netlib.org/utk/people/JackDongarra/faq-linpack.html
Location of underlying workload: Requires the licensed linpack kit.

Packages required: bc,numactl

To run:
```
[root@hawkeye ~]# git clone https://github.com/redhat-performance/linpack-wrapper
[root@hawkeye ~]# linpack-wrapper/linpack/linpack_run
```


```
Options
linpack Usage:
--interleave: numactl interleave option
--use_pbench_version: Instead of running the wrappers version
of linpack, use pbench-linpack when pbench is requested
General options
--home_parent <value>: Our parent home directory. If not set, defaults to current working directory.
--host_config <value>: default is the current host name.
--iterations <value>: Number of times to run the test, defaults to 1.
--pbench: use pbench-user-benchmark and place information into pbench, defaults to do not use.
--pbench_user <value>: user who started everything. Defaults to the current user.
--pbench_copy: Copy the pbench data, not move it.
--pbench_stats: What stats to gather. Defaults to all stats.
--run_label: the label to associate with the pbench run. No default setting.
--run_user: user that is actually running the test on the test system. Defaults to user running wrapper.
--sys_type: Type of system working with, aws, azure, hostname. Defaults to hostname.
--sysname: name of the system running, used in determining config files. Defaults to hostname.
--tuned_setting: used in naming the tar file, default for RHEL is the current active tuned. For non
RHEL systems, default is none.
--usage: this usage message.
```

Note: The script does not install pbench for you. You need to do that manually.
7 changes: 7 additions & 0 deletions linpack/linpack_run
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fi
arguments="$@"

curdir=`pwd`

if [[ $0 == "./"* ]]; then
chars=`echo $0 | awk -v RS='/' 'END{print NR-1}'`
if [[ $chars == 1 ]]; then
Expand All @@ -59,9 +60,15 @@ if [[ $0 == "./"* ]]; then
run_dir=`echo $0 | cut -d'/' -f 1-${chars} | cut -d'.' -f2-`
run_dir="${curdir}${run_dir}"
fi
elif [[ $0 != "/"* ]]; then
dir=`echo $0 | rev | cut -d'/' -f2- | rev`
run_dir="${curdir}/${dir}"
else
chars=`echo $0 | awk -v RS='/' 'END{print NR-1}'`
run_dir=`echo $0 | cut -d'/' -f 1-${chars}`
if [[ $run_dir != "/"* ]]; then
run_dir=${curdir}/${run_dir}
fi
fi

setup_done=0
Expand Down

0 comments on commit 3a055c4

Please sign in to comment.