source: CIVL/examples/omp/DataRaceBench/micro-benchmarks/3mm.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.7 KB
Line 
1/**
2 * 3mm.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 _3MM_H
9# define _3MM_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(NI) && !defined(NJ) && !defined(NK)
18/* Define the possible dataset sizes. */
19# ifdef TINY_DATASET
20# define NI 16
21# define NJ 16
22# define NK 16
23# define NL 16
24# define NM 16
25# endif
26
27# ifdef MINI_DATASET
28# define NI 32
29# define NJ 32
30# define NK 32
31# define NL 32
32# define NM 32
33# endif
34
35# ifdef SMALL_DATASET
36# define NI 128
37# define NJ 128
38# define NK 128
39# define NL 128
40# define NM 128
41# endif
42
43# ifdef STANDARD_DATASET /* Default if unspecified. */
44# define NI 1024
45# define NJ 1024
46# define NK 1024
47# define NL 1024
48# define NM 1024
49# endif
50
51# ifdef LARGE_DATASET
52# define NI 2000
53# define NJ 2000
54# define NK 2000
55# define NL 2000
56# define NM 2000
57# endif
58
59# ifdef EXTRALARGE_DATASET
60# define NI 4000
61# define NJ 4000
62# define NK 4000
63# define NL 4000
64# define NM 4000
65# endif
66# endif /* !N */
67
68# define _PB_NI POLYBENCH_LOOP_BOUND(NI,ni)
69# define _PB_NJ POLYBENCH_LOOP_BOUND(NJ,nj)
70# define _PB_NK POLYBENCH_LOOP_BOUND(NK,nk)
71# define _PB_NL POLYBENCH_LOOP_BOUND(NL,nl)
72# define _PB_NM POLYBENCH_LOOP_BOUND(NM,nm)
73
74# ifndef DATA_TYPE
75# define DATA_TYPE double
76# define DATA_PRINTF_MODIFIER "%0.2lf "
77# endif
78
79
80#endif /* !_3MM */
Note: See TracBrowser for help on using the repository browser.