Skip to content

Commit

Permalink
add ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed Aug 21, 2024
1 parent 29b8fa2 commit 10f8461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/cpu/linear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace fastllm {

void MatMulFloat16Float16(uint16_t *inputData, uint16_t *weightData, float *biasData, uint16_t *outputData,
int n, int m, int k, int st, int end) {
#ifdef __aarch64__
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
if (n > 1 && n < 8) {
const int BLOCKA = 7;
float16x8_t va[BLOCKA], vb, vc[BLOCKA];
Expand Down

0 comments on commit 10f8461

Please sign in to comment.