hipudding commited on
Commit
dcf68db
·
1 Parent(s): ffdf466

CANN: Fix build error with GCC 13 (llama/11990)

Browse files

Remove unused header file that causes compilation failure on ARM
platform with GCC 13.

Files changed (1) hide show
  1. ggml/src/ggml-cann/kernels/dup.cpp +3 -5
ggml/src/ggml-cann/kernels/dup.cpp CHANGED
@@ -1,7 +1,5 @@
1
  #include "kernel_operator.h"
2
 
3
- #include <cmath>
4
-
5
  using namespace AscendC;
6
 
7
  #define BUFFER_NUM 2
@@ -183,7 +181,7 @@ extern "C" __global__ __aicore__ void ascendc_dup_by_rows_fp32(
183
  copy_to_ub(output_ne_gm, output_ne_ub, 32);
184
  copy_to_ub(output_nb_gm, output_nb_ub, 32);
185
 
186
- DupByRows<float_t, float_t> op;
187
  op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub);
188
  op.dup();
189
  }
@@ -206,7 +204,7 @@ extern "C" __global__ __aicore__ void ascendc_dup_by_rows_fp32_to_fp16(
206
  copy_to_ub(output_ne_gm, output_ne_ub, 32);
207
  copy_to_ub(output_nb_gm, output_nb_ub, 32);
208
 
209
- DupByRows<float_t, half> op;
210
  op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub);
211
  op.dup_with_cast();
212
  }
@@ -230,7 +228,7 @@ extern "C" __global__ __aicore__ void ascendc_dup_by_rows_fp16_to_fp32(
230
  copy_to_ub(output_ne_gm, output_ne_ub, 32);
231
  copy_to_ub(output_nb_gm, output_nb_ub, 32);
232
 
233
- DupByRows<half, float_t> op;
234
  op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub);
235
  op.dup_with_cast();
236
  }
 
1
  #include "kernel_operator.h"
2
 
 
 
3
  using namespace AscendC;
4
 
5
  #define BUFFER_NUM 2
 
181
  copy_to_ub(output_ne_gm, output_ne_ub, 32);
182
  copy_to_ub(output_nb_gm, output_nb_ub, 32);
183
 
184
+ DupByRows<float, float> op;
185
  op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub);
186
  op.dup();
187
  }
 
204
  copy_to_ub(output_ne_gm, output_ne_ub, 32);
205
  copy_to_ub(output_nb_gm, output_nb_ub, 32);
206
 
207
+ DupByRows<float, half> op;
208
  op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub);
209
  op.dup_with_cast();
210
  }
 
228
  copy_to_ub(output_ne_gm, output_ne_ub, 32);
229
  copy_to_ub(output_nb_gm, output_nb_ub, 32);
230
 
231
+ DupByRows<half, float> op;
232
  op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub);
233
  op.dup_with_cast();
234
  }