From 879d1313ba69d9ced8424f54ffeea6a3c60496f0 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 30 Sep 2019 13:25:53 +0100 Subject: COMPMID-2452: Fix compilation issues on armclang Change-Id: I41bd60760270a2c7d83e391fd9430b4513ab00bc Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/2002 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- arm_compute/graph/Graph.h | 7 +++++-- arm_compute/graph/Types.h | 2 +- arm_compute/graph/detail/CrossLayerMemoryManagerHelpers.h | 4 ++-- arm_compute/graph/detail/ExecutionHelpers.h | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) (limited to 'arm_compute/graph') diff --git a/arm_compute/graph/Graph.h b/arm_compute/graph/Graph.h index 878976f0af..92507e74e9 100644 --- a/arm_compute/graph/Graph.h +++ b/arm_compute/graph/Graph.h @@ -35,10 +35,13 @@ #include #include #include -#include #include #include +#ifndef BARE_METAL +#include +#endif /* BARE_METAL */ + namespace arm_compute { namespace graph @@ -231,7 +234,7 @@ private: template inline NodeID Graph::add_node(Ts &&... args) { - std::lock_guard lock(_mtx); + arm_compute::lock_guard lock(_mtx); // Create node NodeID nid = _nodes.size(); diff --git a/arm_compute/graph/Types.h b/arm_compute/graph/Types.h index 63b1c94ac8..5b82f93686 100644 --- a/arm_compute/graph/Types.h +++ b/arm_compute/graph/Types.h @@ -73,7 +73,7 @@ constexpr NodeID EmptyNodeID = std::numeric_limits::max(); constexpr EdgeID EmptyEdgeID = std::numeric_limits::max(); // Forward declarations -class TensorDescriptor; +struct TensorDescriptor; /** Graph configuration structure */ struct GraphConfig { diff --git a/arm_compute/graph/detail/CrossLayerMemoryManagerHelpers.h b/arm_compute/graph/detail/CrossLayerMemoryManagerHelpers.h index b7424c8e88..da17806011 100644 --- a/arm_compute/graph/detail/CrossLayerMemoryManagerHelpers.h +++ b/arm_compute/graph/detail/CrossLayerMemoryManagerHelpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -33,7 +33,7 @@ namespace graph // Forward declarations class Graph; class GraphContext; -class ExecutionWorkload; +struct ExecutionWorkload; class ITransMemoryManager; class ITensorHandle; diff --git a/arm_compute/graph/detail/ExecutionHelpers.h b/arm_compute/graph/detail/ExecutionHelpers.h index fd8d082770..955e6d5e1e 100644 --- a/arm_compute/graph/detail/ExecutionHelpers.h +++ b/arm_compute/graph/detail/ExecutionHelpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -33,7 +33,7 @@ namespace graph // Forward declarations class Graph; class GraphContext; -class ExecutionWorkload; +struct ExecutionWorkload; class Tensor; class INode; -- cgit v1.2.1