summaryrefslogtreecommitdiff
path: root/RED/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'RED/include/common.h')
-rw-r--r--[-rwxr-xr-x]RED/include/common.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/RED/include/common.h b/RED/include/common.h
index 121bf31..6cc1ae2 100755..100644
--- a/RED/include/common.h
+++ b/RED/include/common.h
@@ -38,19 +38,21 @@
#define DIV 1 // Shift right to divide by sizeof(T)
#endif
+enum kernels {
+ kernel1 = 0,
+ nr_kernels = 1,
+};
+
// Structures used by both the host and the dpu to communicate information
typedef struct {
- uint32_t size;
- enum kernels {
- kernel1 = 0,
- nr_kernels = 1,
- } kernel;
- T t_count;
+ uint32_t size;
+ enum kernels kernel;
+ T t_count;
} dpu_arguments_t;
typedef struct {
- uint64_t cycles;
- T t_count;
+ uint64_t cycles;
+ T t_count;
} dpu_results_t;
#ifndef PERF