diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-06-28 10:15:48 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | d929b9c49a13eb9c05bb4fab608459669eeeeb9e (patch) | |
tree | ed0101971fe0d8c112f715d47a53aae306031d93 /arm_compute/core/CPP/ICPPKernel.h | |
parent | 725788e33c163f95a6fdc054b6b78296ed7dfe50 (diff) | |
download | ComputeLibrary-d929b9c49a13eb9c05bb4fab608459669eeeeb9e.tar.gz |
COMPMID-417: Enable CPU target selection
Change-Id: I8d1b368c654b738117efb32cfacd5fda10c23203
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79046
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'arm_compute/core/CPP/ICPPKernel.h')
-rw-r--r-- | arm_compute/core/CPP/ICPPKernel.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arm_compute/core/CPP/ICPPKernel.h b/arm_compute/core/CPP/ICPPKernel.h index 99ae68f2e5..9684408987 100644 --- a/arm_compute/core/CPP/ICPPKernel.h +++ b/arm_compute/core/CPP/ICPPKernel.h @@ -24,6 +24,7 @@ #ifndef __ARM_COMPUTE_ICPPKERNEL_H__ #define __ARM_COMPUTE_ICPPKERNEL_H__ +#include "arm_compute/core/CPP/CPPTypes.h" #include "arm_compute/core/IKernel.h" namespace arm_compute @@ -48,6 +49,18 @@ public: * @param[in] window Region on which to execute the kernel. (Must be a region of the window returned by window()) */ virtual void run(const Window &window) = 0; + + /** Sets the target CPU architecture. + * + * @param[in] target CPU target. + */ + void set_target(CPUTarget target) + { + _target = target; + } + +protected: + CPUTarget _target{ CPUTarget::INTRINSICS }; }; } #endif /*__ARM_COMPUTE_ICPPKERNEL_H__ */ |