-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmemory.h
48 lines (41 loc) · 1.33 KB
/
memory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* =====================================================================================
*
* Filename: memory.h
*
* Description:
*
* Version: 1.0
* Created: 03/04/13 21:41:09
* Revision: none
* Compiler: gcc
*
* Author: Marina Zapater (), [email protected]
* Organization: GreenLSI
*
* =====================================================================================
*/
#ifndef _MEMORY_HH_
#define _MEMORY_HH_
#include "cpuidh.h"
#include "main_defs.h"
int randNumbers;
int randMax;
char startRam[200];
char test[20];
char type[20];
char memsize[20];
int testII(int jmax, int arraymax, int *xi);
int testIIR(int jmax, int arraymax, int *xi);
// Serial RW Integer
int testJI(int jmax, int arraymax, int *xi);
// Random RW Integer
int testJIR(int jmax, int arraymax, int *xi);
double testID(int jmax, int arraymax, int *xi, double *xd);
double testIDR(int jmax, int arraymax, int *xi, double *xd);
double testJD(int jmax, int arraymax, int *xi, double *xd);
double testJDR(int jmax, int arraymax, int *xi, double *xd);
int checkTime(int jmax);
double execute_integer_benchmark( int arraysize, int *xi, int numexecs );
double execute_intfp_benchmark( int arraysize, int *xi, double *xd, int numexecs );
#endif // _MEMORY_H_