summaryrefslogtreecommitdiff
path: root/RED/include/common.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-05-23 15:13:59 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-05-23 15:13:59 +0200
commit828846895c8ed472cceea35b66fff53aa63984d6 (patch)
tree4c5230860fa6d04b4e4c975aa2734f4a4454522e /RED/include/common.h
parentb1f82770b817d0558044d3cfb1ef4d36b4492055 (diff)
RED: add AspectC++ support
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