Skip to content

Commit

Permalink
LNP: updating tag of 3.2 w/ typo fixes
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/polybench/code/tags/polybench-c-3.2@27 8a0be867-cad2-4629-9b38-09e595722795
  • Loading branch information
pouchet committed Mar 14, 2012
1 parent cd9c85a commit aaea82a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
the PolyBench infrastructure and machinery, and several
reference C files.

* Uday Bondugula <Uday Bondhugula <ubondhug@us.ibm.com>
* Uday Bondugula <uday@csa.iisc.ernet.in>
Who provided many of the original reference C files, including
Fortran to C translation.

6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
- Rename the package to PolyBench/C, to prepare for the upcoming
PolyBench/Fortran and PolyBench/GPU.
- Fixed a typo in polybench.h, causing compilation problems for 5D arrays.
- Fixed minor typos in correlation, atax, cholesky, fdtd-2d.
- Fixed minor typos in correlation, atax, cholesky, fdtd-2d.
- Added an option to build the test suite with constant loop bounds
(default is parametric loop bounds)

Expand All @@ -31,7 +31,7 @@ Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
-------------

- Multiple dataset sizes are predefined. Each file comes now with a .h
header fiile defining the dataset.
header file defining the dataset.
- Support of heap-allocated arrays. It uses a single malloc for the
entire array region, the data allocated is cast into a C99
multidimensional array.
Expand Down Expand Up @@ -205,7 +205,7 @@ $> ./utilities/time_benchmark.sh ./atax_time
This script will run five times the benchmark (that must be a
PolyBench compiled with -DPOLYBENCH_TIME), eliminate the two extremal
times, and check that the deviation of the three remaining does not
exceed a given thresold, set to 5%.
exceed a given threshold, set to 5%.

It is also possible to use POLYBENCH_CYCLE_ACCURATE_TIMER to use the
Time Stamp Counter instead of gettimeofday() to monitor the number of
Expand Down
5 changes: 2 additions & 3 deletions utilities/polybench.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,19 @@ double rtclock()
}


#ifdef POLYBENCH_CYCLE_ACCURATE_TIMER
static
unsigned long long int rdtsc()
{
unsigned long long int ret = 0;
unsigned int cycles_lo;
unsigned int cycles_hi;

#ifdef POLYBENCH_CYCLE_ACCURATE_TIMER
__asm__ volatile ("RDTSC" : "=a" (cycles_lo), "=d" (cycles_hi));
ret = (unsigned long long int)cycles_hi << 32 | cycles_lo;
#endif

return ret;
}
#endif

void polybench_flush_cache()
{
Expand Down
2 changes: 2 additions & 0 deletions utilities/polybench.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef POLYBENCH_H
# define POLYBENCH_H

# include <stdlib.h>

/* Array padding. By default, none is used. */
# ifndef POLYBENCH_PADDING_FACTOR
/* default: */
Expand Down

0 comments on commit aaea82a

Please sign in to comment.