aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu/kernels/activation/sve/fp16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cpu/kernels/activation/sve/fp16.cpp')
-rw-r--r--src/core/cpu/kernels/activation/sve/fp16.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/cpu/kernels/activation/sve/fp16.cpp b/src/core/cpu/kernels/activation/sve/fp16.cpp
index e4be1a4faa..5e76e82c52 100644
--- a/src/core/cpu/kernels/activation/sve/fp16.cpp
+++ b/src/core/cpu/kernels/activation/sve/fp16.cpp
@@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
+#if defined(__ARM_FEATURE_SVE)
#include "arm_compute/core/Helpers.h"
#include "arm_compute/core/ITensorPack.h"
#include "arm_compute/core/Window.h"
@@ -125,4 +126,5 @@ void fp16_sve_activation(const ITensor *src, ITensor *dst, const ActivationLayer
input, output);
}
} // namespace cpu
-} // namespace arm_compute \ No newline at end of file
+} // namespace arm_compute
+#endif /* defined(__ARM_FEATURE_SVE) */ \ No newline at end of file