已合并
【C API】修复预期外的编译告警 #639
guojianyang创建于 3月2日
【C API】修复预期外的编译告警 #639
已合并
guojianyang创建于 3月2日
2 个文件变更+21-1
Minclude/c_api/reg_compute/reg_convert.h+10-0
@@ -8,6 +8,11 @@
8* See LICENSE in the root of the software repository for the full text of the License.8* See LICENSE in the root of the software repository for the full text of the License.
9*/9*/
10 10 
11+#if !defined(ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS)
12+#define ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS
13+#define UNDEF_ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS_ASCENDC_C_API_H
14+#endif
15+ 
11#ifndef INCLUDE_C_API_REG_COMPUTE_REG_CONVERT_H16#ifndef INCLUDE_C_API_REG_COMPUTE_REG_CONVERT_H
12#define INCLUDE_C_API_REG_COMPUTE_REG_CONVERT_H17#define INCLUDE_C_API_REG_COMPUTE_REG_CONVERT_H
13 18 
@@ -993,3 +998,8 @@ __simd_callee__ inline void asc_half2float(vector_float& dst, vector_half src, v
993__simd_callee__ inline void asc_half2float_v2(vector_float& dst, vector_half src, vector_bool mask);998__simd_callee__ inline void asc_half2float_v2(vector_float& dst, vector_half src, vector_bool mask);
994 999 
995#endif1000#endif
1001+ 
1002+#if defined(UNDEF_ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS_ASCENDC_C_API_H)
1003+#undef ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS
1004+#undef UNDEF_ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS_ASCENDC_C_API_H
1005+#endif
Minclude/c_api/reg_compute/reg_vector.h+11-1
@@ -8,6 +8,11 @@
8* See LICENSE in the root of the software repository for the full text of the License.8* See LICENSE in the root of the software repository for the full text of the License.
9*/9*/
10 10 
11+#if !defined(ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS)
12+#define ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS
13+#define UNDEF_ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS_ASCENDC_C_API_H
14+#endif
15+ 
11#ifndef INCLUDE_C_API_REG_COMPUTE_REG_VECTOR_H16#ifndef INCLUDE_C_API_REG_COMPUTE_REG_VECTOR_H
12#define INCLUDE_C_API_REG_COMPUTE_REG_VECTOR_H17#define INCLUDE_C_API_REG_COMPUTE_REG_VECTOR_H
13 18 
@@ -1196,4 +1201,9 @@ __simd_callee__ inline void asc_prelu(vector_half& dst, vector_half src0, vector
1196 1201 
1197//===================asc_clear_ar_spr=====================1202//===================asc_clear_ar_spr=====================
1198__simd_callee__ inline void asc_clear_ar_spr();1203__simd_callee__ inline void asc_clear_ar_spr();
1199-#endif1204+#endif
1205+ 
1206+#if defined(UNDEF_ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS_ASCENDC_C_API_H)
1207+#undef ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS
1208+#undef UNDEF_ASCENDC_C_API_INCLUDE_COMPILER_INTERNAL_HEADERS_ASCENDC_C_API_H
1209+#endif