aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CPP
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-01-18 10:04:05 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:43:42 +0000
commite8a4983c7bc00ad105389876a8eddd89ed4ef056 (patch)
treed04d3125a1f202875d87a25310ecb9c6c4aaef4c /arm_compute/core/CPP
parentfa7dc84396c7bf05257d82cd641a58c074136223 (diff)
downloadComputeLibrary-e8a4983c7bc00ad105389876a8eddd89ed4ef056.tar.gz
COMPMID-798 Add instrumentation to NEON kernels
Change-Id: I9dbb090cac731d68bd98a7d1c8ab0e1cb0a5c911 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/116746 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/CPP')
-rw-r--r--arm_compute/core/CPP/ICPPKernel.h8
-rw-r--r--arm_compute/core/CPP/kernels/CPPCornerCandidatesKernel.h6
-rw-r--r--arm_compute/core/CPP/kernels/CPPDetectionWindowNonMaximaSuppressionKernel.h6
-rw-r--r--arm_compute/core/CPP/kernels/CPPPermuteKernel.h6
-rw-r--r--arm_compute/core/CPP/kernels/CPPSortEuclideanDistanceKernel.h6
5 files changed, 27 insertions, 5 deletions
diff --git a/arm_compute/core/CPP/ICPPKernel.h b/arm_compute/core/CPP/ICPPKernel.h
index 54717caf80..17f263264b 100644
--- a/arm_compute/core/CPP/ICPPKernel.h
+++ b/arm_compute/core/CPP/ICPPKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -50,6 +50,12 @@ public:
* @param[in] info Info about executing thread and CPU.
*/
virtual void run(const Window &window, const ThreadInfo &info) = 0;
+
+ /** Name of the kernel
+ *
+ * @return Kernel name
+ */
+ virtual const char *name() const = 0;
};
} // namespace arm_compute
#endif /*__ARM_COMPUTE_ICPPKERNEL_H__ */
diff --git a/arm_compute/core/CPP/kernels/CPPCornerCandidatesKernel.h b/arm_compute/core/CPP/kernels/CPPCornerCandidatesKernel.h
index 580264ec90..b89816ef15 100644
--- a/arm_compute/core/CPP/kernels/CPPCornerCandidatesKernel.h
+++ b/arm_compute/core/CPP/kernels/CPPCornerCandidatesKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -40,6 +40,10 @@ using IImage = ITensor;
class CPPCornerCandidatesKernel : public INEKernel
{
public:
+ const char *name() const override
+ {
+ return "CPPCornerCandidatesKernel";
+ }
/** Default constructor */
CPPCornerCandidatesKernel();
/** Prevent instances of this class from being copied (As this class contains pointers) */
diff --git a/arm_compute/core/CPP/kernels/CPPDetectionWindowNonMaximaSuppressionKernel.h b/arm_compute/core/CPP/kernels/CPPDetectionWindowNonMaximaSuppressionKernel.h
index 9ca7c64a13..87766a7a56 100644
--- a/arm_compute/core/CPP/kernels/CPPDetectionWindowNonMaximaSuppressionKernel.h
+++ b/arm_compute/core/CPP/kernels/CPPDetectionWindowNonMaximaSuppressionKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -39,6 +39,10 @@ namespace arm_compute
class CPPDetectionWindowNonMaximaSuppressionKernel : public ICPPKernel
{
public:
+ const char *name() const override
+ {
+ return "CPPDetectionWindowNonMaximaSuppressionKernel";
+ }
/** Default constructor */
CPPDetectionWindowNonMaximaSuppressionKernel();
/** Prevent instances of this class from being copied (As this class contains pointers) */
diff --git a/arm_compute/core/CPP/kernels/CPPPermuteKernel.h b/arm_compute/core/CPP/kernels/CPPPermuteKernel.h
index 0e7c93877e..3d6b43641e 100644
--- a/arm_compute/core/CPP/kernels/CPPPermuteKernel.h
+++ b/arm_compute/core/CPP/kernels/CPPPermuteKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -37,6 +37,10 @@ class ITensor;
class CPPPermuteKernel : public ICPPKernel
{
public:
+ const char *name() const override
+ {
+ return "CPPPermuteKernel";
+ }
/** Default constructor */
CPPPermuteKernel();
/** Prevent instances of this class from being copied (As this class contains pointers) */
diff --git a/arm_compute/core/CPP/kernels/CPPSortEuclideanDistanceKernel.h b/arm_compute/core/CPP/kernels/CPPSortEuclideanDistanceKernel.h
index fddd4254bf..1f16177b3b 100644
--- a/arm_compute/core/CPP/kernels/CPPSortEuclideanDistanceKernel.h
+++ b/arm_compute/core/CPP/kernels/CPPSortEuclideanDistanceKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -36,6 +36,10 @@ namespace arm_compute
class CPPSortEuclideanDistanceKernel : public ICPPKernel
{
public:
+ const char *name() const override
+ {
+ return "CPPSortEuclideanDistanceKernel";
+ }
/** Default constructor */
CPPSortEuclideanDistanceKernel();
/** Prevent instances of this class from being copied (As this class contains pointers) */