Merged
[fix] 删除constexpr中调用非constexpr的属性 #911
点月♡Add on Sep 22
[fix] 删除constexpr中调用非constexpr的属性 #911
Merged
Merged fromqq_45068396/opbasefix-contexpr-9.2.0intocann/opbase9.2.0
Total: 11 files changed+11-11
| @@ -363,7 +363,7 @@ protected: | |||
| 363 | * @return 类型位ScalarType的Scalar值 | 363 | * @return 类型位ScalarType的Scalar值 |
| 364 | */ | 364 | */ |
| 365 | template <typename ScalarType, typename scalarValue> | 365 | template <typename ScalarType, typename scalarValue> |
| 366 | - __aicore__ inline constexpr ScalarType GetScalar() | 366 | + __aicore__ inline ScalarType GetScalar() |
| 367 | { | 367 | { |
| 368 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 368 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 369 | Placeholder::IsConstValue<scalarValue>::Value), | 369 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -328,7 +328,7 @@ protected: | |||
| 328 | * @return 类型位ScalarType的Scalar值 | 328 | * @return 类型位ScalarType的Scalar值 |
| 329 | */ | 329 | */ |
| 330 | template <typename ScalarType, typename scalarValue> | 330 | template <typename ScalarType, typename scalarValue> |
| 331 | - __aicore__ inline constexpr ScalarType GetScalar() | 331 | + __aicore__ inline ScalarType GetScalar() |
| 332 | { | 332 | { |
| 333 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 333 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 334 | Placeholder::IsConstValue<scalarValue>::Value), | 334 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -311,7 +311,7 @@ protected: | |||
| 311 | * @return 类型位ScalarType的Scalar值 | 311 | * @return 类型位ScalarType的Scalar值 |
| 312 | */ | 312 | */ |
| 313 | template <typename ScalarType, typename scalarValue> | 313 | template <typename ScalarType, typename scalarValue> |
| 314 | - __aicore__ inline constexpr ScalarType GetScalar() | 314 | + __aicore__ inline ScalarType GetScalar() |
| 315 | { | 315 | { |
| 316 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 316 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 317 | Placeholder::IsConstValue<scalarValue>::Value), | 317 | Placeholder::IsConstValue<scalarValue>::Value), |
Mpkg_inc/op_common/atvoss/broadcast/noncontiguous/last_transpose/broadcast_sch_base_last_transpose.h+1-1
| @@ -385,7 +385,7 @@ protected: | |||
| 385 | * @return 类型位ScalarType的Scalar值 | 385 | * @return 类型位ScalarType的Scalar值 |
| 386 | */ | 386 | */ |
| 387 | template <typename ScalarType, typename scalarValue> | 387 | template <typename ScalarType, typename scalarValue> |
| 388 | - __aicore__ inline constexpr ScalarType GetScalar() | 388 | + __aicore__ inline ScalarType GetScalar() |
| 389 | { | 389 | { |
| 390 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 390 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 391 | Placeholder::IsConstValue<scalarValue>::Value), | 391 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -368,7 +368,7 @@ protected: | |||
| 368 | * @return 类型位ScalarType的Scalar值 | 368 | * @return 类型位ScalarType的Scalar值 |
| 369 | */ | 369 | */ |
| 370 | template <typename ScalarType, typename scalarValue> | 370 | template <typename ScalarType, typename scalarValue> |
| 371 | - __aicore__ inline constexpr ScalarType GetScalar() | 371 | + __aicore__ inline ScalarType GetScalar() |
| 372 | { | 372 | { |
| 373 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 373 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 374 | Placeholder::IsConstValue<scalarValue>::Value), | 374 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -308,7 +308,7 @@ protected: | |||
| 308 | * @return 类型位ScalarType的Scalar值 | 308 | * @return 类型位ScalarType的Scalar值 |
| 309 | */ | 309 | */ |
| 310 | template <typename ScalarType, typename scalarValue> | 310 | template <typename ScalarType, typename scalarValue> |
| 311 | - __aicore__ inline constexpr ScalarType GetScalar() | 311 | + __aicore__ inline ScalarType GetScalar() |
| 312 | { | 312 | { |
| 313 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 313 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 314 | Placeholder::IsConstValue<scalarValue>::Value), | 314 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -370,7 +370,7 @@ protected: | |||
| 370 | * @return 类型位ScalarType的Scalar值 | 370 | * @return 类型位ScalarType的Scalar值 |
| 371 | */ | 371 | */ |
| 372 | template <typename ScalarType, typename scalarValue> | 372 | template <typename ScalarType, typename scalarValue> |
| 373 | - __aicore__ inline constexpr ScalarType GetScalar() | 373 | + __aicore__ inline ScalarType GetScalar() |
| 374 | { | 374 | { |
| 375 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 375 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 376 | Placeholder::IsConstValue<scalarValue>::Value), | 376 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -276,7 +276,7 @@ protected: | |||
| 276 | * @return 类型位ScalarType的Scalar值 | 276 | * @return 类型位ScalarType的Scalar值 |
| 277 | */ | 277 | */ |
| 278 | template <typename ScalarType, typename scalarValue> | 278 | template <typename ScalarType, typename scalarValue> |
| 279 | - __aicore__ inline constexpr ScalarType GetScalar() | 279 | + __aicore__ inline ScalarType GetScalar() |
| 280 | { | 280 | { |
| 281 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 281 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 282 | Placeholder::IsConstValue<scalarValue>::Value), | 282 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -284,7 +284,7 @@ protected: | |||
| 284 | * @return 类型位ScalarType的Scalar值 | 284 | * @return 类型位ScalarType的Scalar值 |
| 285 | */ | 285 | */ |
| 286 | template <typename ScalarType, typename scalarValue> | 286 | template <typename ScalarType, typename scalarValue> |
| 287 | - __aicore__ inline constexpr ScalarType GetScalar() | 287 | + __aicore__ inline ScalarType GetScalar() |
| 288 | { | 288 | { |
| 289 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 289 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 290 | Placeholder::IsConstValue<scalarValue>::Value), | 290 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -300,7 +300,7 @@ protected: | |||
| 300 | * @return 类型位ScalarType的Scalar值 | 300 | * @return 类型位ScalarType的Scalar值 |
| 301 | */ | 301 | */ |
| 302 | template <typename ScalarType, typename scalarValue> | 302 | template <typename ScalarType, typename scalarValue> |
| 303 | - __aicore__ inline constexpr ScalarType GetScalar() | 303 | + __aicore__ inline ScalarType GetScalar() |
| 304 | { | 304 | { |
| 305 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && | 305 | static_assert(!(Placeholder::IsVar<scalarValue>::Value && Placeholder::IsInHolder<scalarValue>::Value && |
| 306 | Placeholder::IsConstValue<scalarValue>::Value), | 306 | Placeholder::IsConstValue<scalarValue>::Value), |
| @@ -574,7 +574,7 @@ public: | |||
| 574 | } | 574 | } |
| 575 | 575 | ||
| 576 | template <typename ScalarType, typename ScalarValue> | 576 | template <typename ScalarType, typename ScalarValue> |
| 577 | - __aicore__ inline constexpr ScalarType GetScalar() | 577 | + __aicore__ inline ScalarType GetScalar() |
| 578 | { | 578 | { |
| 579 | static_assert(!(Placeholder::IsVar<ScalarValue>::Value && Placeholder::IsInHolder<ScalarValue>::Value && | 579 | static_assert(!(Placeholder::IsVar<ScalarValue>::Value && Placeholder::IsInHolder<ScalarValue>::Value && |
| 580 | Placeholder::IsConstValue<ScalarValue>::Value), | 580 | Placeholder::IsConstValue<ScalarValue>::Value), |