diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2025-05-23 14:42:05 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2025-05-23 14:42:05 +0200 |
commit | b1f82770b817d0558044d3cfb1ef4d36b4492055 (patch) | |
tree | 5d08ac0ace62954fd0662dfedc0f7bedbd0be5bc /RED/host | |
parent | 887aac6ff274e972e21ddab400502d76b78dfcbf (diff) |
RED: support → include; fix runtime for NR_DPUS==1
Diffstat (limited to 'RED/host')
-rw-r--r-- | RED/host/app.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/RED/host/app.c b/RED/host/app.c index 204f056..885ddb8 100644 --- a/RED/host/app.c +++ b/RED/host/app.c @@ -13,9 +13,9 @@ #include <getopt.h> #include <assert.h> -#include "../support/common.h" -#include "../support/timer.h" -#include "../support/params.h" +#include "common.h" +#include "timer.h" +#include "params.h" // Define the DPU Binary path as DPU_BINARY here #ifndef DPU_BINARY @@ -168,9 +168,9 @@ int main(int argc, char **argv) { // Input arguments unsigned int kernel = 0; dpu_arguments_t input_arguments[NR_DPUS]; - for(i=0; i<NR_DPUS-1; i++) { - input_arguments[i].size=input_size_dpu_8bytes * sizeof(T); - input_arguments[i].kernel=kernel; + for(int j=0; j<NR_DPUS-1; i++) { + input_arguments[j].size=input_size_dpu_8bytes * sizeof(T); + input_arguments[j].kernel=kernel; } input_arguments[NR_DPUS-1].size=(input_size_8bytes - input_size_dpu_8bytes * (NR_DPUS-1)) * sizeof(T); input_arguments[NR_DPUS-1].kernel=kernel; |