From ae27e943a096074075d97d273d3b95f8cd84a61d Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Thu, 28 Sep 2017 18:31:26 +0100 Subject: COMPMID-417 - Fix utils.h map() and unmap() are not inline functions and can cause issues at compile time: i.e. multiple definition of `arm_compute::utils::unmap(arm_compute::CLTensor&)' Change-Id: I2da3e70030d896a06feb995fa6ebf7a718fe0af6 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89579 Reviewed-by: Georgios Pinitas Tested-by: Kaizen Reviewed-by: Anthony Barbier --- utils/Utils.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/Utils.h b/utils/Utils.h index 47a352e905..b0e1abeb5f 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -86,7 +86,7 @@ std::tuple parse_ppm_header(std::ifstream &fs); * @param[in] blocking Specified if map is blocking or not */ template -void map(T &tensor, bool blocking) +inline void map(T &tensor, bool blocking) { ARM_COMPUTE_UNUSED(tensor); ARM_COMPUTE_UNUSED(blocking); @@ -97,7 +97,7 @@ void map(T &tensor, bool blocking) * @param tensor Tensor to be unmapped */ template -void unmap(T &tensor) +inline void unmap(T &tensor) { ARM_COMPUTE_UNUSED(tensor); } @@ -108,7 +108,7 @@ void unmap(T &tensor) * @param[in] tensor Tensor to be mapped * @param[in] blocking Specified if map is blocking or not */ -void map(CLTensor &tensor, bool blocking) +inline void map(CLTensor &tensor, bool blocking) { tensor.map(blocking); } @@ -117,7 +117,7 @@ void map(CLTensor &tensor, bool blocking) * * @param tensor Tensor to be unmapped */ -void unmap(CLTensor &tensor) +inline void unmap(CLTensor &tensor) { tensor.unmap(); } -- cgit v1.2.1