Skip to content

Commit

Permalink
[aot] Rename device capability atomic_i64 to atomic_int64 for consist…
Browse files Browse the repository at this point in the history
…ency (taichi-dev#7095)
  • Loading branch information
PENGUINLIONG authored and lin-hitonami committed Jan 12, 2023
1 parent 6c75400 commit 6c87b57
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions c_api/include/taichi/cpp/taichi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ class CapabilityLevelConfigBuilder {
value ? TI_TRUE : TI_FALSE;
return *this;
}
Self &spirv_has_atomic_i64(bool value = true) {
cap_level_infos[TI_CAPABILITY_SPIRV_HAS_ATOMIC_I64] =
Self &spirv_has_atomic_int64(bool value = true) {
cap_level_infos[TI_CAPABILITY_SPIRV_HAS_ATOMIC_INT64] =
value ? TI_TRUE : TI_FALSE;
return *this;
}
Expand Down
2 changes: 1 addition & 1 deletion c_api/include/taichi/taichi_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ typedef enum TiCapability {
TI_CAPABILITY_SPIRV_HAS_INT64 = 4,
TI_CAPABILITY_SPIRV_HAS_FLOAT16 = 5,
TI_CAPABILITY_SPIRV_HAS_FLOAT64 = 6,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_I64 = 7,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_INT64 = 7,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_FLOAT16 = 8,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_FLOAT16_ADD = 9,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_FLOAT16_MINMAX = 10,
Expand Down
2 changes: 1 addition & 1 deletion docs/lang/articles/c-api/taichi_core.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ typedef enum TiCapability {
TI_CAPABILITY_SPIRV_HAS_INT64 = 4,
TI_CAPABILITY_SPIRV_HAS_FLOAT16 = 5,
TI_CAPABILITY_SPIRV_HAS_FLOAT64 = 6,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_I64 = 7,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_INT64 = 7,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_FLOAT16 = 8,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_FLOAT16_ADD = 9,
TI_CAPABILITY_SPIRV_HAS_ATOMIC_FLOAT16_MINMAX = 10,
Expand Down
2 changes: 1 addition & 1 deletion python/taichi/lang/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DeviceCapability:
spirv_has_int64 = "spirv_has_int64"
spirv_has_float16 = "spirv_has_float16"
spirv_has_float64 = "spirv_has_float64"
spirv_has_atomic_i64 = "spirv_has_atomic_i64"
spirv_has_atomic_int64 = "spirv_has_atomic_int64"
spirv_has_atomic_float16 = "spirv_has_atomic_float16"
spirv_has_atomic_float16_add = "spirv_has_atomic_float16_add"
spirv_has_atomic_float16_minmax = "spirv_has_atomic_float16_minmax"
Expand Down
2 changes: 1 addition & 1 deletion taichi/inc/rhi_constants.inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PER_DEVICE_CAPABILITY(spirv_has_int16)
PER_DEVICE_CAPABILITY(spirv_has_int64)
PER_DEVICE_CAPABILITY(spirv_has_float16)
PER_DEVICE_CAPABILITY(spirv_has_float64)
PER_DEVICE_CAPABILITY(spirv_has_atomic_i64)
PER_DEVICE_CAPABILITY(spirv_has_atomic_int64)
PER_DEVICE_CAPABILITY(spirv_has_atomic_float16) // load, store, exchange
PER_DEVICE_CAPABILITY(spirv_has_atomic_float16_add)
PER_DEVICE_CAPABILITY(spirv_has_atomic_float16_minmax)
Expand Down

0 comments on commit 6c87b57

Please sign in to comment.