Move autotune related stuff to autotune.c

This commit is contained in:
jsteube
2016-09-14 20:06:27 +02:00
parent 963cda3db6
commit e94ab8c113
9 changed files with 341 additions and 350 deletions
+2
View File
@@ -6,4 +6,6 @@
#ifndef _ATTACK_MODE_H
#define _ATTACK_MODE_H
#define ATTACK_MODE 0
#endif // _ATTACK_MODE_H
+4
View File
@@ -6,4 +6,8 @@
#ifndef _AUTOTUNE_H
#define _AUTOTUNE_H
#define OPENCL_VECTOR_WIDTH 0
int autotune (hc_device_param_t *device_param, hashconfig_t *hashconfig);
#endif // _AUTOTUNE_H
+14
View File
@@ -6,6 +6,20 @@
#ifndef _DATA_H
#define _DATA_H
#define global_free(attr) \
{ \
myfree ((void *) data.attr); \
\
data.attr = NULL; \
}
#define local_free(attr) \
{ \
myfree ((void *) attr); \
\
attr = NULL; \
}
typedef struct
{
/**
+2
View File
@@ -6,4 +6,6 @@
#ifndef _POWERTUNE_H
#define _POWERTUNE_H
#define POWERTUNE_ENABLE 0
#endif // _POWERTUNE_H
+3
View File
@@ -6,4 +6,7 @@
#ifndef _REMOVE_H
#define _REMOVE_H
#define REMOVE 0
#define REMOVE_TIMER 60
#endif // _REMOVE_H
+2
View File
@@ -6,4 +6,6 @@
#ifndef _RUNTIME_H
#define _RUNTIME_H
#define RUNTIME 0
#endif // _RUNTIME_H