Skip to content

Commit 669ed57

Browse files
author
etotmeni
committed
Fix error catch + small fixes
1 parent 0694829 commit 669ed57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dpctl-capi/helper/source/dpctl_utils_helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,4 @@ DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(aspect Aspect)
381381
default:
382382
throw runtime_error("Unsupported aspect type", -1);
383383
}
384-
}
384+
}

dpctl-capi/tests/test_sycl_device_aspects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct TestDPCTLSyclDeviceInterfaceAspects
134134
auto syclAspect = GetParam().second.second;
135135
try {
136136
hasAspect = D->has(syclAspect);
137-
} catch (std::runtime_error const &re) {
137+
} catch (cl::sycl::runtime_error const &re) {
138138
}
139139
}
140140

0 commit comments

Comments
 (0)