Skip to content

Commit 5ec1c38

Browse files
slipmetalArtem Kopytin
and
Artem Kopytin
authored
Build if supporting __ARM_FEATURE_FP16_VECTOR_ARITHMETIC (#1436)
* acl_executor.cc fixed bug: scratch_mem invalid memory released condition * fc_hcl_arm.c fixed bug: failed build if supporting __ARM_FEATURE_FP16_VECTOR_ARITHMETIC * Fixed build for TENGINE_ARCH_ARM_82 --------- Co-authored-by: Artem Kopytin <[email protected]>
1 parent c73708c commit 5ec1c38

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

source/device/cpu/op/conv/cortex-a/armv8.2/conv_dw_kernel_fp16_arm82.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#include <stdint.h>
2626
#include <stdlib.h>
2727
#include <math.h>
28-
#include "compiler_fp16.h"
28+
#include "graph/tensor.h"
29+
#include "utility/log.h"
30+
#include "common/compiler_fp16.h"
2931
#include "conv_dw_kernel_fp16_arm82.h"
3032

3133
void dw_k3s1p1_fp16_a76(__fp16* input, __fp16* kernel, __fp16* output, long channel_number, long input_w, long input_h, __fp16* bias);

source/device/cpu/op/conv/cortex-a/armv8.2/conv_kernel_fp16_arm82.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#include <arm_neon.h>
2828
#include <sys/time.h>
2929

30-
#include "conv_kernel_arm.h"
31-
#include "compiler_fp16.h"
30+
#include "../conv_kernel_arm.h"
31+
#include "common/compiler_fp16.h"
3232

3333
#define PER_OUT_CHAN 16
3434

source/device/cpu/op/fc/cortex-a/fc_hcl_arm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include <string.h>
4343

4444
#if __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
45-
#include "cortex_a/fc_kernel_fp16_arm82.h"
45+
#include "armv8.2/fc_kernel_fp16_arm82.h"
4646
#endif
4747

4848
static int prerun(struct node_ops* node_ops, struct exec_node* exec_node, struct exec_graph* exec_graph)

0 commit comments

Comments
 (0)