PandA-2024.02
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sched.h>
#include <math.h>
#include "polybench.h"
Go to the source code of this file.
Data Structures | |
struct | polybench_data_ptrs |
Macros | |
#define | POLYBENCH_THREAD_MONITOR 0 |
This version is stamped on May 10, 2016. More... | |
#define | POLYBENCH_CACHE_SIZE_KB 32770 |
#define | NB_INITIAL_TABLE_ENTRIES 512 |
Functions | |
static double | rtclock () |
void | polybench_flush_cache () |
void | polybench_prepare_instruments () |
void | polybench_timer_start () |
void | polybench_timer_stop () |
void | polybench_timer_print () |
static void * | xmalloc (size_t alloc_sz) |
void | polybench_free_data (void *ptr) |
void * | polybench_alloc_data (unsigned long long int n, int elt_size) |
Variables | |
int | polybench_papi_counters_threadid = POLYBENCH_THREAD_MONITOR |
double | polybench_program_total_flops = 0 |
static struct polybench_data_ptrs * | _polybench_alloc_table = NULL |
static size_t | polybench_inter_array_padding_sz = 0 |
double | polybench_t_start |
double | polybench_t_end |
unsigned long long int | polybench_c_start |
unsigned long long int | polybench_c_end |
#define NB_INITIAL_TABLE_ENTRIES 512 |
Definition at line 66 of file polybench.c.
Referenced by polybench_timer_print().
#define POLYBENCH_CACHE_SIZE_KB 32770 |
Definition at line 41 of file polybench.c.
Referenced by polybench_flush_cache().
#define POLYBENCH_THREAD_MONITOR 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 36 of file polybench.c.
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().
void polybench_timer_print | ( | ) |
Definition at line 388 of file polybench.c.
References polybench_data_ptrs::nb_avail_entries, polybench_data_ptrs::nb_entries, NB_INITIAL_TABLE_ENTRIES, NULL, polybench_c_end, polybench_c_start, polybench_program_total_flops, polybench_t_end, polybench_t_start, polybench_data_ptrs::real_ptr, test_panda::stderr, and polybench_data_ptrs::user_view.
void polybench_timer_start | ( | ) |
Definition at line 364 of file polybench.c.
References polybench_c_start, polybench_prepare_instruments(), polybench_t_start, and rtclock().
void polybench_timer_stop | ( | ) |
Definition at line 375 of file polybench.c.
References polybench_c_end, polybench_t_end, and rtclock().
|
static |
Definition at line 83 of file polybench.c.
References NULL.
Referenced by polybench_timer_start(), and polybench_timer_stop().
|
static |
Definition at line 517 of file polybench.c.
References NULL, POLYBENCH_INTER_ARRAY_PADDING_FACTOR, polybench_inter_array_padding_sz, and test_panda::stderr.
Referenced by polybench_alloc_data().
|
static |
Definition at line 74 of file polybench.c.
unsigned long long int polybench_c_end |
Definition at line 80 of file polybench.c.
Referenced by polybench_timer_print(), and polybench_timer_stop().
unsigned long long int polybench_c_start |
Definition at line 80 of file polybench.c.
Referenced by polybench_timer_print(), and polybench_timer_start().
|
static |
Definition at line 75 of file polybench.c.
Referenced by xmalloc().
int polybench_papi_counters_threadid = POLYBENCH_THREAD_MONITOR |
Definition at line 45 of file polybench.c.
Referenced by polybench_flush_cache().
double polybench_program_total_flops = 0 |
Definition at line 46 of file polybench.c.
Referenced by polybench_timer_print().
double polybench_t_end |
Definition at line 78 of file polybench.c.
Referenced by polybench_timer_print(), and polybench_timer_stop().
double polybench_t_start |
Definition at line 78 of file polybench.c.
Referenced by polybench_timer_print(), and polybench_timer_start().