Skip to content

Commit

Permalink
fix ci error
Browse files Browse the repository at this point in the history
Signed-off-by: Bangtian Liu <[email protected]>
  • Loading branch information
bangtianliu committed Jan 23, 2025
1 parent 74cb915 commit 8c5ff94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def IREEGPU_TargetChipAttr : AttrDef<IREEGPU_Dialect, "TargetChip"> {
"uint32_t":$wgp_count,

// An optional SKU identifier to distinguish different models.
"std::optional<StringAttr>":$sku,
OptionalParameter<"StringAttr">:$sku,
// An optional extra dict
// This field allows to inject more features/limits not supported in the
// above list for better flexibility.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ TargetAttr createTargetAttr(const TargetDetails &details, StringRef arch,

TargetChipAttr targetChip;
if (details.chip) {
std::optional<StringAttr> skuAttr = std::nullopt;
if (details.chip->sku) {
skuAttr = StringAttr::get(context, *details.chip->sku);
}
StringAttr skuAttr =
StringAttr::get(context, details.chip->sku.value_or(""));
targetChip = TargetChipAttr::get(context, details.chip->wgpCount, skuAttr,
DictionaryAttr{});
}
Expand Down

0 comments on commit 8c5ff94

Please sign in to comment.