Skip to content

Commit

Permalink
Minor code cleanups.
Browse files Browse the repository at this point in the history
Update copyright and contact information.
  • Loading branch information
Greg Smith authored and Greg Smith committed Jun 2, 2015
1 parent a11758d commit 9948099
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ The project is hosted at http://github.com/gregs1104/stream-scaling

If you have any hints, changes or improvements, please contact:

* Greg Smith greg@2ndQuadrant.com
* Greg Smith greg.smith@crunchydatasolutions.com

Credits
=======
Expand All @@ -384,7 +384,7 @@ License

stream-scaling is licensed under a standard 3-clause BSD license.

Copyright (c) 2010, Gregory Smith
Copyright (c) 2010-2015, Gregory Smith
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
10 changes: 6 additions & 4 deletions stream-scaling
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@
#
# Compiling stream on mainstream Linux systems requires gcc 4.2
# for the OpenMP libraries used here to be available.
#

# The default way stream is compiled, it operates on a array of
# 2,000,000 elements taking up approximately 46MB of RAM. If the
# total amount of processor cache on your system exceeds this amount,
# that means more of the data will fit in cache than intended, and
# the results will be inflated. Accordingly, this cache size is
# estimated (in a way that only works on Linux), and the size of
# the array used is increased to be twice as large as that total.
# the array used is increased to be 10X as large as that total.
# The STREAM source code itself suggests a 4X multiplier should
# be enough.
STREAM_MIN=10000000

# Limit the maximum array sized used so that the data structure fits
# into a memory block without overflow. This makes for about 3GB
# of memory just for the main array, plus some other structures,
# and just fits on most 64-bit systems. A lower limit may
# be needed on some sytems.
MAX_ARRAY_SIZE=130000000
STREAM_MIN=10000000

#
# Look for sysctl on this system. It's often not in non-root user's PATH.
Expand All @@ -46,7 +48,7 @@ fi
#
# Determine maximum cores to test
#

# TODO GNUP coreutils nproc might be useful for some non-Linux systems
if [ -n "$1" ] ; then
MAX_CORES="$1"
elif [ -f "/proc/cpuinfo" ] ; then
Expand Down

0 comments on commit 9948099

Please sign in to comment.