This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ int main() {
33
33
if (std::string (E.what ()).find (" SYCL_DEVICE_TYPE is not recognized. Must "
34
34
" be GPU, CPU, ACC or HOST." ) ==
35
35
std::string::npos &&
36
- std::string (E.what ()).find (" No device of requested type available. " ) ==
36
+ std::string (E.what ()).find (" No device of requested type" ) ==
37
37
std::string::npos) {
38
38
std::cout << " Test failed: received error is incorrect." << std::endl;
39
39
return 1 ;
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ int main() {
350
350
const auto &plt = dev.get_platform ();
351
351
} catch (sycl::runtime_error &E) {
352
352
const std::string expectedMsg (
353
- " No device of requested type available" );
353
+ " No device of requested type 'info::device_type::gpu' available" );
354
354
const std::string gotMessage (E.what ());
355
355
if (gotMessage.find (expectedMsg) != std::string::npos) {
356
356
passed = true ;
@@ -422,7 +422,7 @@ int main() {
422
422
const auto &plt = dev.get_platform ();
423
423
} catch (sycl::runtime_error &E) {
424
424
const std::string expectedMsg (
425
- " No device of requested type available" );
425
+ " No device of requested type 'info::device_type::gpu' available" );
426
426
const std::string gotMessage (E.what ());
427
427
if (gotMessage.find (expectedMsg) != std::string::npos) {
428
428
passed = true ;
You can’t perform that action at this time.
0 commit comments