PandA-2024.02
|
#include <stdlib.h>
Go to the source code of this file.
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 () |
#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.
#define POLYBENCH_1D_ARRAY_DECL | ( | var, | |
type, | |||
dim1, | |||
ddim1 | |||
) |
#define POLYBENCH_1D_F | ( | var, | |
dim1, | |||
ddim1 | |||
) | var[POLYBENCH_C99_SELECT(dim1,ddim1) + POLYBENCH_PADDING_FACTOR] |
Definition at line 103 of file polybench.h.
#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.
#define POLYBENCH_2D_ARRAY_DECL | ( | var, | |
type, | |||
dim1, | |||
dim2, | |||
ddim1, | |||
ddim2 | |||
) |
Definition at line 131 of file polybench.h.
Referenced by init_array(), and main().
#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.
#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.
#define POLYBENCH_3D_ARRAY_DECL | ( | var, | |
type, | |||
dim1, | |||
dim2, | |||
dim3, | |||
ddim1, | |||
ddim2, | |||
ddim3 | |||
) |
Definition at line 134 of file polybench.h.
Referenced by main().
#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.
#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.
#define POLYBENCH_4D_ARRAY_DECL | ( | var, | |
type, | |||
dim1, | |||
dim2, | |||
dim3, | |||
dim4, | |||
ddim1, | |||
ddim2, | |||
ddim3, | |||
ddim4 | |||
) |
Definition at line 137 of file polybench.h.
#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.
#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.
#define POLYBENCH_5D_ARRAY_DECL | ( | var, | |
type, | |||
dim1, | |||
dim2, | |||
dim3, | |||
dim4, | |||
dim5, | |||
ddim1, | |||
ddim2, | |||
ddim3, | |||
ddim4, | |||
ddim5 | |||
) |
Definition at line 140 of file polybench.h.
#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.
#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.
#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.
#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.
#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.
#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.
Definition at line 84 of file polybench.h.
Referenced by init_array(), and main().
Definition at line 53 of file polybench.h.
#define POLYBENCH_DCE_ONLY_CODE if (argc > 42 && ! strcmp(argv[0], "")) |
Definition at line 159 of file polybench.h.
Definition at line 90 of file polybench.h.
#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().
#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().
#define POLYBENCH_DUMP_FINISH fprintf(POLYBENCH_DUMP_TARGET, "==END DUMP_ARRAYS==\n") |
Definition at line 166 of file polybench.h.
Referenced by print_array().
#define POLYBENCH_DUMP_START fprintf(POLYBENCH_DUMP_TARGET, "==BEGIN DUMP_ARRAYS==\n") |
Definition at line 165 of file polybench.h.
Referenced by print_array().
#define POLYBENCH_DUMP_TARGET stderr |
Definition at line 164 of file polybench.h.
Referenced by print_array().
Definition at line 88 of file polybench.h.
Referenced by init_array(), and main().
#define POLYBENCH_INTER_ARRAY_PADDING_FACTOR 0 |
Definition at line 41 of file polybench.h.
Referenced by xmalloc().
#define POLYBENCH_LOOP_BOUND | ( | x, | |
y | |||
) | y |
Definition at line 62 of file polybench.h.
#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.
#define polybench_prevent_dce | ( | func | ) |
Definition at line 170 of file polybench.h.
Referenced by main().
#define polybench_print_instruments |
Definition at line 178 of file polybench.h.
Referenced by main().
#define POLYBENCH_RESTRICT |
Definition at line 73 of file polybench.h.
#define polybench_start_instruments |
Definition at line 176 of file polybench.h.
Referenced by main().
#define polybench_stop_instruments |
Definition at line 177 of file polybench.h.
Referenced by main().
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().
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().
void polybench_free_data | ( | void * | ptr | ) |
Definition at line 547 of file polybench.c.
void polybench_prepare_instruments | ( | ) |
Definition at line 353 of file polybench.c.
References polybench_flush_cache().
Referenced by polybench_timer_start().