Add ATOMS_LOOP_RUNS option and statistics to stub variant

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti
2021-10-12 22:39:54 +02:00
parent 55d346510e
commit 43ba28e130
7 changed files with 137 additions and 99 deletions

View File

@@ -31,6 +31,7 @@ typedef struct {
} Stats;
void initStats(Stats *s);
void displayStatistics(Atom *atom, Parameter *param, Stats *stats, double *timer);
#ifdef COMPUTE_STATS
# define addStat(stat, value) stat += value;

11
src/includes/timers.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef __TIMERS_H_
#define __TIMERS_H_
typedef enum {
TOTAL = 0,
NEIGH,
FORCE,
NUMTIMER
} timertype;
#endif