From 828846895c8ed472cceea35b66fff53aa63984d6 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 23 May 2025 15:13:59 +0200 Subject: RED: add AspectC++ support --- RED/include/common.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) mode change 100755 => 100644 RED/include/common.h (limited to 'RED/include/common.h') diff --git a/RED/include/common.h b/RED/include/common.h old mode 100755 new mode 100644 index 121bf31..6cc1ae2 --- 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 -- cgit v1.2.3