Skip to content

Commit 14db263

Browse files
Added missing cases for emulated aspect in switch statements
1 parent 8062c0c commit 14db263

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libsyclinterface/helper/source/dpctl_utils_helper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
214214
case aspect::host_debuggable:
215215
ss << "host_debuggable";
216216
break;
217+
case aspect::emulated:
218+
ss << "emulated";
219+
break;
217220
default:
218221
throw std::runtime_error("Unsupported aspect type");
219222
}
@@ -280,6 +283,9 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
280283
else if (aspectTyStr == "host_debuggable") {
281284
aspectTy = aspect::host_debuggable;
282285
}
286+
else if (aspectTyStr == "emulated") {
287+
aspectTy = aspect::emulated;
288+
}
283289
else {
284290
// \todo handle the error
285291
throw std::runtime_error("Unsupported aspect type");

0 commit comments

Comments
 (0)