diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-23 08:13:44 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-23 08:13:44 +0200 |
commit | 4504dc8aaf739cc890dc0d310646eb7242059b0d (patch) | |
tree | 49007ccd0503373888d6bfb516f198fc1e885fa2 | |
parent | 165974cde79214f8d81bb3b6ffdb2aa207c32f08 (diff) |
TS: Replace dpu_copy_to loop with more efficient dpu_push_xfer
-rw-r--r-- | TS/host/app.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/TS/host/app.c b/TS/host/app.c index a75cfe9..1bd0547 100644 --- a/TS/host/app.c +++ b/TS/host/app.c @@ -250,16 +250,10 @@ int main(int argc, char **argv) start(&timer, 2, 0); } uint32_t i = 0; - - DPU_FOREACH(dpu_set, dpu) { - input_arguments.exclusion_zone = 0; - - DPU_ASSERT(dpu_copy_to - (dpu, "DPU_INPUT_ARGUMENTS", 0, - (const void *)&input_arguments, - sizeof(input_arguments))); - i++; + DPU_FOREACH(dpu_set, dpu, i) { + DPU_ASSERT(dpu_prepare_xfer(dpu, (const void *)&input_arguments)); } + DPU_ASSERT(dpu_push_xfer(dpu_set, DPU_XFER_TO_DPU, "DPU_INPUT_ARGUMENTS", 0, sizeof(input_arguments), DPU_XFER_DEFAULT)); i = 0; mem_offset = 0; |