mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-26 18:14:23 +00:00
53 lines
1.2 KiB
C
53 lines
1.2 KiB
C
#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 */
|