source: CIVL/examples/omp/dataracebench-1.3.2/micro-benchmarks/polybench/adi.h

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100755
File size: 1.3 KB
RevLine 
[a1acb0c5]1/**
2 * adi.h: This file is part of the PolyBench/C 3.2 test suite.
3 *
4 *
5 * Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
6 * Web address: http://polybench.sourceforge.net
7 * License: /LICENSE.OSU.txt
8 */
9#ifndef ADI_H
10# define ADI_H
11
12/* Default to STANDARD_DATASET. */
13# if !defined(TINY_DATASET) && !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)
14# define STANDARD_DATASET
15# endif
16
17/* Do not define anything if the user manually defines the size. */
18# if !defined(TSTEPS) && ! defined(N)
19/* Define the possible dataset sizes. */
20# ifdef TINY_DATASET
21# define TSTEPS 2
22# define N 16
23# endif
24
25# ifdef MINI_DATASET
26# define TSTEPS 2
27# define N 32
28# endif
29
30# ifdef SMALL_DATASET
31# define TSTEPS 10
32# define N 500
33# endif
34
35# ifdef STANDARD_DATASET /* Default if unspecified. */
36# define TSTEPS 50
37# define N 1024
38# endif
39
40# ifdef LARGE_DATASET
41# define TSTEPS 50
42# define N 2000
43# endif
44
45# ifdef EXTRALARGE_DATASET
46# define TSTEPS 100
47# define N 4000
48# endif
49# endif /* !N */
50
51# define _PB_TSTEPS POLYBENCH_LOOP_BOUND(TSTEPS,tsteps)
52# define _PB_N POLYBENCH_LOOP_BOUND(N,n)
53
54# ifndef DATA_TYPE
55# define DATA_TYPE double
56# define DATA_PRINTF_MODIFIER "%0.2lf "
57# endif
58
59
60#endif /* !ADI */
Note: See TracBrowser for help on using the repository browser.