source: CIVL/examples/omp/DataRaceBench/micro-benchmarks/adi.h@ e5cec5ae

1.23 2.0 main test-branch
Last change on this file since e5cec5ae was 36a61f3, checked in by Ziqing Luo <ziqing@…>, 9 years ago

Commit DataRaceBench into CIVL examples

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

  • Property mode set to 100644
File size: 1.2 KB
Line 
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 */
8#ifndef ADI_H
9# define ADI_H
10
11/* Default to STANDARD_DATASET. */
12# if !defined(TINY_DATASET) && !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)
13# define STANDARD_DATASET
14# endif
15
16/* Do not define anything if the user manually defines the size. */
17# if !defined(TSTEPS) && ! defined(N)
18/* Define the possible dataset sizes. */
19# ifdef TINY_DATASET
20# define TSTEPS 2
21# define N 16
22# endif
23
24# ifdef MINI_DATASET
25# define TSTEPS 2
26# define N 32
27# endif
28
29# ifdef SMALL_DATASET
30# define TSTEPS 10
31# define N 500
32# endif
33
34# ifdef STANDARD_DATASET /* Default if unspecified. */
35# define TSTEPS 50
36# define N 1024
37# endif
38
39# ifdef LARGE_DATASET
40# define TSTEPS 50
41# define N 2000
42# endif
43
44# ifdef EXTRALARGE_DATASET
45# define TSTEPS 100
46# define N 4000
47# endif
48# endif /* !N */
49
50# define _PB_TSTEPS POLYBENCH_LOOP_BOUND(TSTEPS,tsteps)
51# define _PB_N POLYBENCH_LOOP_BOUND(N,n)
52
53# ifndef DATA_TYPE
54# define DATA_TYPE double
55# define DATA_PRINTF_MODIFIER "%0.2lf "
56# endif
57
58
59#endif /* !ADI */
Note: See TracBrowser for help on using the repository browser.