PandA-2024.02
Macros | Functions
polybench.h File Reference
#include <stdlib.h>
Include dependency graph for polybench.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define POLYBENCH_PADDING_FACTOR   0
 This version is stamped on May 10, 2016. More...
 
#define POLYBENCH_INTER_ARRAY_PADDING_FACTOR   0
 
#define POLYBENCH_C99_SELECT(x, y)   x
 
#define POLYBENCH_LOOP_BOUND(x, y)   y
 
#define POLYBENCH_RESTRICT
 
#define POLYBENCH_ARRAY(x)   *x
 
#define POLYBENCH_FREE_ARRAY(x)   free((void*)x);
 
#define POLYBENCH_DECL_VAR(x)   (*x)
 
#define POLYBENCH_1D(var, dim1, ddim1)   var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_2D(var, dim1, dim2, ddim1, ddim2)   var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_3D(var, dim1, dim2, dim3, ddim1, ddim2, ddim3)   var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_4D(var, dim1, dim2, dim3, dim4, ddim1, ddim2, ddim3, ddim4)   var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_5D(var, dim1, dim2, dim3, dim4, dim5, ddim1, ddim2, ddim3, ddim4, ddim5)   var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim5,ddim5) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_1D_F(var, dim1, ddim1)   var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_2D_F(var, dim1, dim2, ddim1, ddim2)   var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_3D_F(var, dim1, dim2, dim3, ddim1, ddim2, ddim3)   var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_4D_F(var, dim1, dim2, dim3, dim4, ddim1, ddim2, ddim3, ddim4)   var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_5D_F(var, dim1, dim2, dim3, dim4, dim5, ddim1, ddim2, ddim3, ddim4, ddim5)   var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim5,ddim5) + POLYBENCH_PADDING_FACTOR]
 
#define POLYBENCH_ALLOC_1D_ARRAY(n1, type)   (type(*)[n1 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data (n1 + POLYBENCH_PADDING_FACTOR, sizeof(type))
 
#define POLYBENCH_ALLOC_2D_ARRAY(n1, n2, type)   (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR), sizeof(type))
 
#define POLYBENCH_ALLOC_3D_ARRAY(n1, n2, n3, type)   (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR][n3 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR) * (n3 + POLYBENCH_PADDING_FACTOR), sizeof(type))
 
#define POLYBENCH_ALLOC_4D_ARRAY(n1, n2, n3, n4, type)   (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR][n3 + POLYBENCH_PADDING_FACTOR][n4 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR) * (n3 + POLYBENCH_PADDING_FACTOR) * (n4 + POLYBENCH_PADDING_FACTOR), sizeof(type))
 
#define POLYBENCH_ALLOC_5D_ARRAY(n1, n2, n3, n4, n5, type)   (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR][n3 + POLYBENCH_PADDING_FACTOR][n4 + POLYBENCH_PADDING_FACTOR][n5 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR) * (n3 + POLYBENCH_PADDING_FACTOR) * (n4 + POLYBENCH_PADDING_FACTOR) * (n5 + POLYBENCH_PADDING_FACTOR), sizeof(type))
 
#define POLYBENCH_1D_ARRAY_DECL(var, type, dim1, ddim1)
 
#define POLYBENCH_2D_ARRAY_DECL(var, type, dim1, dim2, ddim1, ddim2)
 
#define POLYBENCH_3D_ARRAY_DECL(var, type, dim1, dim2, dim3, ddim1, ddim2, ddim3)
 
#define POLYBENCH_4D_ARRAY_DECL(var, type, dim1, dim2, dim3, dim4, ddim1, ddim2, ddim3, ddim4)
 
#define POLYBENCH_5D_ARRAY_DECL(var, type, dim1, dim2, dim3, dim4, dim5, ddim1, ddim2, ddim3, ddim4, ddim5)
 
#define POLYBENCH_DCE_ONLY_CODE   if (argc > 42 && ! strcmp(argv[0], ""))
 
#define POLYBENCH_DUMP_TARGET   stderr
 
#define POLYBENCH_DUMP_START   fprintf(POLYBENCH_DUMP_TARGET, "==BEGIN DUMP_ARRAYS==\n")
 
#define POLYBENCH_DUMP_FINISH   fprintf(POLYBENCH_DUMP_TARGET, "==END DUMP_ARRAYS==\n")
 
#define POLYBENCH_DUMP_BEGIN(s)   fprintf(POLYBENCH_DUMP_TARGET, "begin dump: %s", s)
 
#define POLYBENCH_DUMP_END(s)   fprintf(POLYBENCH_DUMP_TARGET, "\nend dump: %s\n", s)
 
#define polybench_prevent_dce(func)
 
#define polybench_start_instruments
 
#define polybench_stop_instruments
 
#define polybench_print_instruments
 

Functions

void * polybench_alloc_data (unsigned long long int n, int elt_size)
 
void polybench_free_data (void *ptr)
 
void polybench_flush_cache ()
 
void polybench_prepare_instruments ()
 

Macro Definition Documentation

◆ POLYBENCH_1D

#define POLYBENCH_1D (   var,
  dim1,
  ddim1 
)    var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR]

Definition at line 97 of file polybench.h.

◆ POLYBENCH_1D_ARRAY_DECL

#define POLYBENCH_1D_ARRAY_DECL (   var,
  type,
  dim1,
  ddim1 
)
Value:
type POLYBENCH_1D_F(POLYBENCH_DECL_VAR(var), dim1, ddim1); \
#define POLYBENCH_1D_F(var, dim1, ddim1)
Definition: polybench.h:103
#define POLYBENCH_C99_SELECT(x, y)
Definition: polybench.h:53
#define POLYBENCH_DECL_VAR(x)
Definition: polybench.h:90
#define POLYBENCH_ALLOC_1D_ARRAY(n1, type)
Definition: polybench.h:115

Definition at line 128 of file polybench.h.

Referenced by main().

◆ POLYBENCH_1D_F

#define POLYBENCH_1D_F (   var,
  dim1,
  ddim1 
)    var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR]

Definition at line 103 of file polybench.h.

◆ POLYBENCH_2D

#define POLYBENCH_2D (   var,
  dim1,
  dim2,
  ddim1,
  ddim2 
)    var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR]

Definition at line 98 of file polybench.h.

◆ POLYBENCH_2D_ARRAY_DECL

#define POLYBENCH_2D_ARRAY_DECL (   var,
  type,
  dim1,
  dim2,
  ddim1,
  ddim2 
)
Value:
type POLYBENCH_2D_F(POLYBENCH_DECL_VAR(var), dim1, dim2, ddim1, ddim2); \
#define POLYBENCH_2D_F(var, dim1, dim2, ddim1, ddim2)
Definition: polybench.h:104
#define POLYBENCH_C99_SELECT(x, y)
Definition: polybench.h:53
#define POLYBENCH_ALLOC_2D_ARRAY(n1, n2, type)
Definition: polybench.h:117
#define POLYBENCH_DECL_VAR(x)
Definition: polybench.h:90

Definition at line 131 of file polybench.h.

Referenced by init_array(), and main().

◆ POLYBENCH_2D_F

#define POLYBENCH_2D_F (   var,
  dim1,
  dim2,
  ddim1,
  ddim2 
)    var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR]

Definition at line 104 of file polybench.h.

◆ POLYBENCH_3D

#define POLYBENCH_3D (   var,
  dim1,
  dim2,
  dim3,
  ddim1,
  ddim2,
  ddim3 
)    var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR]

Definition at line 99 of file polybench.h.

◆ POLYBENCH_3D_ARRAY_DECL

#define POLYBENCH_3D_ARRAY_DECL (   var,
  type,
  dim1,
  dim2,
  dim3,
  ddim1,
  ddim2,
  ddim3 
)
Value:
type POLYBENCH_3D_F(POLYBENCH_DECL_VAR(var), dim1, dim2, dim3, ddim1, ddim2, ddim3); \
#define POLYBENCH_3D_F(var, dim1, dim2, dim3, ddim1, ddim2, ddim3)
Definition: polybench.h:105
#define POLYBENCH_C99_SELECT(x, y)
Definition: polybench.h:53
#define POLYBENCH_ALLOC_3D_ARRAY(n1, n2, n3, type)
Definition: polybench.h:119
#define POLYBENCH_DECL_VAR(x)
Definition: polybench.h:90

Definition at line 134 of file polybench.h.

Referenced by main().

◆ POLYBENCH_3D_F

#define POLYBENCH_3D_F (   var,
  dim1,
  dim2,
  dim3,
  ddim1,
  ddim2,
  ddim3 
)    var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR]

Definition at line 105 of file polybench.h.

◆ POLYBENCH_4D

#define POLYBENCH_4D (   var,
  dim1,
  dim2,
  dim3,
  dim4,
  ddim1,
  ddim2,
  ddim3,
  ddim4 
)    var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR]

Definition at line 100 of file polybench.h.

◆ POLYBENCH_4D_ARRAY_DECL

#define POLYBENCH_4D_ARRAY_DECL (   var,
  type,
  dim1,
  dim2,
  dim3,
  dim4,
  ddim1,
  ddim2,
  ddim3,
  ddim4 
)
Value:
type POLYBENCH_4D_F(POLYBENCH_DECL_VAR(var), dim1, dim2, dim3, dim4, ddim1, ddim2, ddim3, ddim4); \
#define POLYBENCH_C99_SELECT(x, y)
Definition: polybench.h:53
#define POLYBENCH_DECL_VAR(x)
Definition: polybench.h:90
#define POLYBENCH_ALLOC_4D_ARRAY(n1, n2, n3, n4, type)
Definition: polybench.h:121
#define POLYBENCH_4D_F(var, dim1, dim2, dim3, dim4, ddim1, ddim2, ddim3, ddim4)
Definition: polybench.h:106

Definition at line 137 of file polybench.h.

◆ POLYBENCH_4D_F

#define POLYBENCH_4D_F (   var,
  dim1,
  dim2,
  dim3,
  dim4,
  ddim1,
  ddim2,
  ddim3,
  ddim4 
)    var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR]

Definition at line 106 of file polybench.h.

◆ POLYBENCH_5D

#define POLYBENCH_5D (   var,
  dim1,
  dim2,
  dim3,
  dim4,
  dim5,
  ddim1,
  ddim2,
  ddim3,
  ddim4,
  ddim5 
)    var[POLYBENCH_RESTRICT POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim5,ddim5) + POLYBENCH_PADDING_FACTOR]

Definition at line 101 of file polybench.h.

◆ POLYBENCH_5D_ARRAY_DECL

#define POLYBENCH_5D_ARRAY_DECL (   var,
  type,
  dim1,
  dim2,
  dim3,
  dim4,
  dim5,
  ddim1,
  ddim2,
  ddim3,
  ddim4,
  ddim5 
)
Value:
type POLYBENCH_5D_F(POLYBENCH_DECL_VAR(var), dim1, dim2, dim3, dim4, dim5, ddim1, ddim2, ddim3, ddim4, ddim5); \
#define POLYBENCH_ALLOC_5D_ARRAY(n1, n2, n3, n4, n5, type)
Definition: polybench.h:123
#define POLYBENCH_5D_F(var, dim1, dim2, dim3, dim4, dim5, ddim1, ddim2, ddim3, ddim4, ddim5)
Definition: polybench.h:107
#define POLYBENCH_C99_SELECT(x, y)
Definition: polybench.h:53
#define POLYBENCH_DECL_VAR(x)
Definition: polybench.h:90

Definition at line 140 of file polybench.h.

◆ POLYBENCH_5D_F

#define POLYBENCH_5D_F (   var,
  dim1,
  dim2,
  dim3,
  dim4,
  dim5,
  ddim1,
  ddim2,
  ddim3,
  ddim4,
  ddim5 
)    var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim2,ddim2) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim3,ddim3) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim4,ddim4) + POLYBENCH_PADDING_FACTOR][POLYBENCH_C99_SELECT(dim5,ddim5) + POLYBENCH_PADDING_FACTOR]

Definition at line 107 of file polybench.h.

◆ POLYBENCH_ALLOC_1D_ARRAY

#define POLYBENCH_ALLOC_1D_ARRAY (   n1,
  type 
)    (type(*)[n1 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data (n1 + POLYBENCH_PADDING_FACTOR, sizeof(type))

Definition at line 115 of file polybench.h.

◆ POLYBENCH_ALLOC_2D_ARRAY

#define POLYBENCH_ALLOC_2D_ARRAY (   n1,
  n2,
  type 
)    (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR), sizeof(type))

Definition at line 117 of file polybench.h.

◆ POLYBENCH_ALLOC_3D_ARRAY

#define POLYBENCH_ALLOC_3D_ARRAY (   n1,
  n2,
  n3,
  type 
)    (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR][n3 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR) * (n3 + POLYBENCH_PADDING_FACTOR), sizeof(type))

Definition at line 119 of file polybench.h.

◆ POLYBENCH_ALLOC_4D_ARRAY

#define POLYBENCH_ALLOC_4D_ARRAY (   n1,
  n2,
  n3,
  n4,
  type 
)    (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR][n3 + POLYBENCH_PADDING_FACTOR][n4 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR) * (n3 + POLYBENCH_PADDING_FACTOR) * (n4 + POLYBENCH_PADDING_FACTOR), sizeof(type))

Definition at line 121 of file polybench.h.

◆ POLYBENCH_ALLOC_5D_ARRAY

#define POLYBENCH_ALLOC_5D_ARRAY (   n1,
  n2,
  n3,
  n4,
  n5,
  type 
)    (type(*)[n1 + POLYBENCH_PADDING_FACTOR][n2 + POLYBENCH_PADDING_FACTOR][n3 + POLYBENCH_PADDING_FACTOR][n4 + POLYBENCH_PADDING_FACTOR][n5 + POLYBENCH_PADDING_FACTOR])polybench_alloc_data ((n1 + POLYBENCH_PADDING_FACTOR) * (n2 + POLYBENCH_PADDING_FACTOR) * (n3 + POLYBENCH_PADDING_FACTOR) * (n4 + POLYBENCH_PADDING_FACTOR) * (n5 + POLYBENCH_PADDING_FACTOR), sizeof(type))

Definition at line 123 of file polybench.h.

◆ POLYBENCH_ARRAY

#define POLYBENCH_ARRAY (   x)    *x

Definition at line 84 of file polybench.h.

Referenced by init_array(), and main().

◆ POLYBENCH_C99_SELECT

#define POLYBENCH_C99_SELECT (   x,
 
)    x

Definition at line 53 of file polybench.h.

◆ POLYBENCH_DCE_ONLY_CODE

#define POLYBENCH_DCE_ONLY_CODE   if (argc > 42 && ! strcmp(argv[0], ""))

Definition at line 159 of file polybench.h.

◆ POLYBENCH_DECL_VAR

#define POLYBENCH_DECL_VAR (   x)    (*x)

Definition at line 90 of file polybench.h.

◆ POLYBENCH_DUMP_BEGIN

#define POLYBENCH_DUMP_BEGIN (   s)    fprintf(POLYBENCH_DUMP_TARGET, "begin dump: %s", s)

Definition at line 167 of file polybench.h.

Referenced by print_array().

◆ POLYBENCH_DUMP_END

#define POLYBENCH_DUMP_END (   s)    fprintf(POLYBENCH_DUMP_TARGET, "\nend dump: %s\n", s)

Definition at line 168 of file polybench.h.

Referenced by print_array().

◆ POLYBENCH_DUMP_FINISH

#define POLYBENCH_DUMP_FINISH   fprintf(POLYBENCH_DUMP_TARGET, "==END DUMP_ARRAYS==\n")

Definition at line 166 of file polybench.h.

Referenced by print_array().

◆ POLYBENCH_DUMP_START

#define POLYBENCH_DUMP_START   fprintf(POLYBENCH_DUMP_TARGET, "==BEGIN DUMP_ARRAYS==\n")

Definition at line 165 of file polybench.h.

Referenced by print_array().

◆ POLYBENCH_DUMP_TARGET

#define POLYBENCH_DUMP_TARGET   stderr

Definition at line 164 of file polybench.h.

Referenced by print_array().

◆ POLYBENCH_FREE_ARRAY

#define POLYBENCH_FREE_ARRAY (   x)    free((void*)x);

Definition at line 88 of file polybench.h.

Referenced by init_array(), and main().

◆ POLYBENCH_INTER_ARRAY_PADDING_FACTOR

#define POLYBENCH_INTER_ARRAY_PADDING_FACTOR   0

Definition at line 41 of file polybench.h.

Referenced by xmalloc().

◆ POLYBENCH_LOOP_BOUND

#define POLYBENCH_LOOP_BOUND (   x,
 
)    y

Definition at line 62 of file polybench.h.

◆ POLYBENCH_PADDING_FACTOR

#define POLYBENCH_PADDING_FACTOR   0

This version is stamped on May 10, 2016.

Contact: Louis-Noel Pouchet <pouchet.ohio-state.edu> Tomofumi Yuki <tomofumi.yuki.fr>

Web address: http://polybench.sourceforge.net

Definition at line 35 of file polybench.h.

◆ polybench_prevent_dce

#define polybench_prevent_dce (   func)
Value:
POLYBENCH_DCE_ONLY_CODE \
func

Definition at line 170 of file polybench.h.

Referenced by main().

◆ polybench_print_instruments

#define polybench_print_instruments

Definition at line 178 of file polybench.h.

Referenced by main().

◆ POLYBENCH_RESTRICT

#define POLYBENCH_RESTRICT

Definition at line 73 of file polybench.h.

◆ polybench_start_instruments

#define polybench_start_instruments

Definition at line 176 of file polybench.h.

Referenced by main().

◆ polybench_stop_instruments

#define polybench_stop_instruments

Definition at line 177 of file polybench.h.

Referenced by main().

Function Documentation

◆ polybench_alloc_data()

void* polybench_alloc_data ( unsigned long long int  n,
int  elt_size 
)

FIXME: detect overflow!

Definition at line 557 of file polybench.c.

References xmalloc().

Here is the call graph for this function:

◆ polybench_flush_cache()

void polybench_flush_cache ( )

Definition at line 112 of file polybench.c.

References lenet_tvm::file, k, line(), NULL, POLYBENCH_CACHE_SIZE_KB, polybench_flush_cache(), polybench_papi_counters_threadid, and test_panda::stdout.

Referenced by polybench_flush_cache(), and polybench_prepare_instruments().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ polybench_free_data()

void polybench_free_data ( void *  ptr)

Definition at line 547 of file polybench.c.

◆ polybench_prepare_instruments()

void polybench_prepare_instruments ( )

Definition at line 353 of file polybench.c.

References polybench_flush_cache().

Referenced by polybench_timer_start().

Here is the call graph for this function:
Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:03:12 for PandA-2024.02 by doxygen 1.8.13