mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-28 08:31:25 +00:00 
			
		
		
		
	CANN: Fix build error with GCC 13 (#11990)
Remove unused header file that causes compilation failure on ARM platform with GCC 13.
This commit is contained in:
		| @@ -1,7 +1,5 @@ | ||||
| #include "kernel_operator.h" | ||||
|  | ||||
| #include <cmath> | ||||
|  | ||||
| using namespace AscendC; | ||||
|  | ||||
| #define BUFFER_NUM 2 | ||||
| @@ -183,7 +181,7 @@ extern "C" __global__ __aicore__ void ascendc_dup_by_rows_fp32( | ||||
|     copy_to_ub(output_ne_gm, output_ne_ub, 32); | ||||
|     copy_to_ub(output_nb_gm, output_nb_ub, 32); | ||||
|  | ||||
|     DupByRows<float_t, float_t> op; | ||||
|     DupByRows<float, float> op; | ||||
|     op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub); | ||||
|     op.dup(); | ||||
| } | ||||
| @@ -206,7 +204,7 @@ extern "C" __global__ __aicore__ void ascendc_dup_by_rows_fp32_to_fp16( | ||||
|     copy_to_ub(output_ne_gm, output_ne_ub, 32); | ||||
|     copy_to_ub(output_nb_gm, output_nb_ub, 32); | ||||
|  | ||||
|     DupByRows<float_t, half> op; | ||||
|     DupByRows<float, half> op; | ||||
|     op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub); | ||||
|     op.dup_with_cast(); | ||||
| } | ||||
| @@ -230,7 +228,7 @@ extern "C" __global__ __aicore__ void ascendc_dup_by_rows_fp16_to_fp32( | ||||
|     copy_to_ub(output_ne_gm, output_ne_ub, 32); | ||||
|     copy_to_ub(output_nb_gm, output_nb_ub, 32); | ||||
|  | ||||
|     DupByRows<half, float_t> op; | ||||
|     DupByRows<half, float> op; | ||||
|     op.init(src_gm, dst_gm, input_ne_ub, input_nb_ub); | ||||
|     op.dup_with_cast(); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hipudding
					hipudding