diff --git a/.github/workflows/community_release.yml b/.github/workflows/community_release.yml index af2fa6ef516..ab588d08463 100644 --- a/.github/workflows/community_release.yml +++ b/.github/workflows/community_release.yml @@ -7,7 +7,7 @@ on: schedule: # beijing: 6 pm. # utc: 10 am. - - cron: "0 10 * * *" + - cron: "0 10 * * sat" workflow_dispatch: inputs: priv_branch: diff --git a/.github/workflows/priv_release.yml b/.github/workflows/priv_release.yml index 5bdf4afea36..1e65b383a28 100644 --- a/.github/workflows/priv_release.yml +++ b/.github/workflows/priv_release.yml @@ -7,7 +7,7 @@ on: schedule: # beijing: 12 pm. # utc: 4 am. - - cron: "0 4 * * *" + - cron: "0 4 * * sun" workflow_dispatch: inputs: priv_branch: diff --git a/oneflow/core/common/device_type.proto b/oneflow/core/common/device_type.proto index 08e702b3232..2d39fdd18ed 100644 --- a/oneflow/core/common/device_type.proto +++ b/oneflow/core/common/device_type.proto @@ -9,4 +9,5 @@ enum DeviceType { kMeta = 4; kMLU = 5; // Cambricon MLU kNPU = 6; // Ascend NPU + kXPU = 7; // KunLunXin } diff --git a/oneflow/ir/lib/OneFlow/UserOpConversion.cpp b/oneflow/ir/lib/OneFlow/UserOpConversion.cpp index da289cdc6fa..0b040420268 100644 --- a/oneflow/ir/lib/OneFlow/UserOpConversion.cpp +++ b/oneflow/ir/lib/OneFlow/UserOpConversion.cpp @@ -488,6 +488,8 @@ ::oneflow::DeviceType getDeviceTypeFromAttrDictionary(DictionaryAttr attributes) return ::oneflow::DeviceType::kMLU; } else if (device_tag.str() == "npu") { return ::oneflow::DeviceType::kNPU; + } else if (device_tag.str() == "xpu") { + return ::oneflow::DeviceType::kXPU; } else { LOG(FATAL) << "unsupported device tag: " << device_tag.str(); return ::oneflow::DeviceType::kInvalidDevice;