In this appendix we list some commands that report information that may be relevant for your experiment. We use here the syntax for the --comment option of labrun. If you have other commands you believe others may find useful, please let us know so we can add them to this list.
Instruction cache=`hinv`:Instruction.cache.size[\s:]+(.*)
L1 data cache=`hinv`:Data.cache.size[\s:]+(.*)
Instruction cache=0x`prtconf -pv`:icache-size Bytes
L1 data cache=0x`prtconf -pv`:dcache-size Bytes
The information from prtconf is in hex. The
0x before the command indicates that labrun should convert the number of bytes reported to decimal.
CGAL version=@$CGALROOT/include/CGAL/config.h:CGAL_VERSION\s+(.*)
Compiler version=`$CC -v`: version
Graphics card=`hinv`:Graphics\sboard
LEDA version=@$LEDAROOT/CHANGES:__LEDA__
LEDA version=`cgal_leda_version`
Because CGAL may have been installed with a different version of LEDA than the one pointed to by LEDAROOT, the script cgal_leda_version is used to find the correct version number. The script is as follows:
#! /bin/sh -f cat $CGAL_MAKEFILE |grep "/LEDA.*/incl"|sed -e s:incl:CHANGES: > /tmp/name if [ -s /tmp/name ] ; then file=`cat /tmp/name` cat $file|grep "#define __LEDA__"|head -n 1|sed 's:#define __LEDA__::' rm /tmp/name else echo "None" fi
Notice that this script assumes the environment variable CGAL_MAKEFILE has been set. If this makefile does not correspond to one created with LEDA support, the value "None" is returned.
Qt version=@$QTDIR/README:version\s+(\d+(\.\d+)*)
We also show here the commands used to extract the information automatically recorded in the log file in case these commands somehow correspond to different information on your system.
OS=`uname -s`
Hardware=`uname -m`
Machine=`uname -n`
Processor=`hinv | grep '.* MHZ .* Processor' |
awk '{printf \"%d MHz %s\", $2,$4}'`
This command should be on a single line.
Processor=@/proc/cpuinfo:cpu.MHz[:\s]+(\w)+ MHz
@/proc/cpuinfo:model.name[\s:]+(.*)
This command should be on a single line.
Processor=`psrinfo -v | sed -n -e '1,4 s/.*The \(.*\)
processor operates at \(.*\),/\2 \1/p'`
This command should be on a single line.
Memory size=`hinv`:Main.memory.size[\s:]+(.*)
Memory size=@/proc/meminfo:MemTotal[\s:]+(.*)
Memory size=`prtconf -pv`:Memory.size[\s:]+(.*)
L2 data cache=`hinv`:Secondary.*cache.size[\s:]+(.*)
L2 data cache=@/proc/cpuinfo:cache.size[\s:]+(.*)
L2 data cache=0x`prtconf -pv`:ecache-size Bytes