aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/NEON/kernels/arm_gemm/gemm_native.hpp')
-rw-r--r--src/core/NEON/kernels/arm_gemm/gemm_native.hpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/core/NEON/kernels/arm_gemm/gemm_native.hpp b/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
index fe6ebef045..c2f742b5cf 100644
--- a/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
+++ b/src/core/NEON/kernels/arm_gemm/gemm_native.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -87,8 +87,8 @@ public:
_window_range(iceildiv(_Msize, strategy::out_height()), _nbatches, iceildiv(_Nsize, _n_block), _nmultis) { }
// Window is amount per multi multiplied by total number of multis.
- unsigned int get_window_size() const override {
- return _window_range.total_size();
+ ndrange_t get_window_size() const override {
+ return { _window_range.total_size(), 1u, 1u, 1u, 1u, 1u };
}
// Native GEMMs can always be dynamically scheduled (whether requested or not)
@@ -97,7 +97,7 @@ public:
}
// Actually execute the GEMM.
- void execute(unsigned int start, unsigned int end, int) override {
+ void execute_1d(unsigned int start, unsigned int end, int) {
#ifdef CYCLE_PROFILING
profiler prof;
#endif
@@ -139,6 +139,16 @@ public:
}
} while (p.next_dim1());
}
+
+ //Execute
+ void execute(const ndcoord_t& work_range, const ndcoord_t& thread_locator, int threadid) override {
+ UNUSED(thread_locator);
+
+ const auto start = work_range.get_position(0);
+ const auto stop = work_range.get_position_end(0);
+
+ execute_1d(start, stop, threadid);
+ }
};
} // namespace arm_gemm