Skip to content

Commit

Permalink
Merge branch 'dev_refactor_xccl_primitive' of github.com:Oneflow-Inc/…
Browse files Browse the repository at this point in the history
…oneflow into dev_refactor_xccl_primitive
  • Loading branch information
Flowingsun007 committed Jan 9, 2025
2 parents a9cd8df + 1809053 commit ca258af
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/community_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
schedule:
# beijing: 6 pm.
# utc: 10 am.
- cron: "0 10 * * *"
- cron: "0 10 * * sat"
workflow_dispatch:
inputs:
priv_branch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/priv_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
schedule:
# beijing: 12 pm.
# utc: 4 am.
- cron: "0 4 * * *"
- cron: "0 4 * * sun"
workflow_dispatch:
inputs:
priv_branch:
Expand Down
1 change: 1 addition & 0 deletions oneflow/core/common/device_type.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ enum DeviceType {
kMeta = 4;
kMLU = 5; // Cambricon MLU
kNPU = 6; // Ascend NPU
kXPU = 7; // KunLunXin
}
2 changes: 2 additions & 0 deletions oneflow/ir/lib/OneFlow/UserOpConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca258af

Please sign in to comment.