已合并
优化host侧宏 #5321
JC1126创建于 11 天前
优化host侧宏 #5321
已合并
共 4 个文件变更+2-6
| @@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | -#if (defined(__NPU_ARCH__) && (__NPU_ARCH__ == 3510)) | 18 | +#if !defined(__NPU_ARCH__) || (defined(__NPU_ARCH__) && (__NPU_ARCH__ == 3510)) |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | 21 | ||
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | -#if (defined(__NPU_ARCH__) && (__NPU_ARCH__ == 3510)) | 26 | +#if !defined(__NPU_ARCH__) || (defined(__NPU_ARCH__) && (__NPU_ARCH__ == 3510)) |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | 29 | ||
| @@ -85,11 +85,9 @@ __aicore__ inline void asc_get_store_atomic_config(asc_store_atomic_config& conf | |||
| 85 | 85 | ||
| 86 | __aicore__ inline void asc_set_store_atomic_config_v1(uint16_t type, uint16_t op); | 86 | __aicore__ inline void asc_set_store_atomic_config_v1(uint16_t type, uint16_t op); |
| 87 | 87 | ||
| 88 | - | ||
| 89 | [[deprecated("NOTICE: asc_set_store_atomic_config_v2 is deprecated." | 88 | [[deprecated("NOTICE: asc_set_store_atomic_config_v2 is deprecated." |
| 90 | "Please use asc_atomic_add instead for atomic add operation.")]] __aicore__ inline void | 89 | "Please use asc_atomic_add instead for atomic add operation.")]] __aicore__ inline void |
| 91 | asc_set_store_atomic_config_v2(uint16_t type, uint16_t op); | 90 | asc_set_store_atomic_config_v2(uint16_t type, uint16_t op); |
| 92 | - | ||
| 93 | 91 | ||
| 94 | 92 | ||
| 95 | 93 | ||
| @@ -33,7 +33,5 @@ static void test_host_c_api_atomic_0() | |||
| 33 | using ::asc_set_atomic_min_int8; | 33 | using ::asc_set_atomic_min_int8; |
| 34 | using ::asc_set_atomic_none; | 34 | using ::asc_set_atomic_none; |
| 35 | using ::asc_set_store_atomic_config_v1; | 35 | using ::asc_set_store_atomic_config_v1; |
| 36 | - | ||
| 37 | using ::asc_set_store_atomic_config_v2; | 36 | using ::asc_set_store_atomic_config_v2; |
| 38 | - | ||
| 39 | } | 37 | } |