Skip to content

Commit e2c142f

Browse files
committed
Update error message in parallel_for_range.cpp
1 parent c593556 commit e2c142f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sycl/test/basic_tests/parallel_for_range.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ int main() {
300300
return 1; // We shouldn't be here, exception is expected
301301
} catch (nd_range_error &E) {
302302
if (string_class(E.what()).find(
303-
"Total number of work-items in a work-group cannot exceed "
304-
"info::device::max_work_group_size which is equal to " +
303+
"Total number of work-items in a work-group cannot exceed " +
305304
std::to_string(MaxDeviceWGSize)) == string_class::npos) {
306305
std::cerr
307306
<< "Test case OpenCL1XNegativeC failed: unexpected exception: "
@@ -349,8 +348,7 @@ int main() {
349348
return 1; // We shouldn't be here, exception is expected
350349
} catch (nd_range_error &E) {
351350
if (string_class(E.what()).find(
352-
"Total number of work-items in a work-group cannot exceed "
353-
"info::kernel_work_group::work_group_size which is equal to " +
351+
"Total number of work-items in a work-group cannot exceed " +
354352
std::to_string(MaxKernelWGSize) + " for this kernel") ==
355353
string_class::npos) {
356354
std::cerr

0 commit comments

Comments
 (0)