aboutsummaryrefslogtreecommitdiff
path: root/src/graph/detail/ExecutionHelpers.cpp
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2021-08-20 15:24:03 +0100
committerGiorgio Arena <giorgio.arena@arm.com>2021-08-24 11:46:13 +0000
commit9c67d3883adaa8a65e3567579cf99937deaab21a (patch)
treee3b11c5918b4121e8e7d5ad728847ce74a8ed77f /src/graph/detail/ExecutionHelpers.cpp
parent87a74effff65f6fa1b0e565818e02c3b414ae1cf (diff)
downloadComputeLibrary-9c67d3883adaa8a65e3567579cf99937deaab21a.tar.gz
Remove map/unmap overhead for input/output accessor when using DummyAccessor
Don't map/unmap when the tensor data is not accessed in the input or output accessor. This is so to avoid measuring CPU overhead when benchmarking on the GPU backend. Resolve COMPMID-4712 Change-Id: I5baba1b93e7a51fe13525bcce6c0cfdecb14493e Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6140 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph/detail/ExecutionHelpers.cpp')
-rw-r--r--src/graph/detail/ExecutionHelpers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graph/detail/ExecutionHelpers.cpp b/src/graph/detail/ExecutionHelpers.cpp
index 5be3706cfe..ac800df76c 100644
--- a/src/graph/detail/ExecutionHelpers.cpp
+++ b/src/graph/detail/ExecutionHelpers.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020 Arm Limited.
+ * Copyright (c) 2018-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -265,6 +265,8 @@ bool call_all_output_node_accessors(ExecutionWorkload &workload)
is_valid = is_valid && valid_output;
});
+ sync_backends();
+
return is_valid;
}
} // namespace detail