blob: 2084042d2b9f3317ac6d7f79a1ead61fe4d213e0 [file] [log] [blame]
/**
* reg_detect.h: This file is part of the PolyBench/C 3.2 test suite.
*
*
* Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://polybench.sourceforge.net
*/
#ifndef REG_DETECT_H
# define REG_DETECT_H
/* Default to STANDARD_DATASET. */
# if !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)
# define STANDARD_DATASET
# endif
/* Do not define anything if the user manually defines the size. */
# if !defined(NITER) && !defined(LENGTH) && !defined(MAXGRID)
/* Define the possible dataset sizes. */
# ifdef MINI_DATASET
# define NITER 10
# define LENGTH 32
# define MAXGRID 2
# endif
# ifdef SMALL_DATASET
# define NITER 100
# define LENGTH 50
# define MAXGRID 6
# endif
# ifdef STANDARD_DATASET /* Default if unspecified. */
# define NITER 10000
# define LENGTH 64
# define MAXGRID 6
# endif
# ifdef LARGE_DATASET
# define NITER 1000
# define LENGTH 500
# define MAXGRID 12
# endif
# ifdef EXTRALARGE_DATASET
# define NITER 10000
# define LENGTH 500
# define MAXGRID 12
# endif
# endif /* !N */
# define _PB_NITER POLYBENCH_LOOP_BOUND(NITER,niter)
# define _PB_LENGTH POLYBENCH_LOOP_BOUND(LENGTH,length)
# define _PB_MAXGRID POLYBENCH_LOOP_BOUND(MAXGRID,maxgrid)
# ifndef DATA_TYPE
# define DATA_TYPE int
# define DATA_PRINTF_MODIFIER "%d "
# endif
#endif /* !REG_DETECT */