Skip to content

Commit e05a86f

Browse files
committed
Updated a LIT test, updated the output message per reviewer's comment
1 parent aed7e1b commit e05a86f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sycl/source/detail/error_handling/enqueue_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ bool handleInvalidWorkGroupSize(const device_impl &DeviceImpl, pi_kernel Kernel,
201201
std::to_string(NDRDesc.GlobalSize[2]);
202202
std::string message =
203203
LocalExceedsGlobal
204-
? "Local workgroup size {" + LocalWGSize +
204+
? "Local work-group size {" + LocalWGSize +
205205
"} is greater than global range size {" + GlobalWGSize +
206206
"}"
207207
: "Global work size {" + GlobalWGSize +
208-
"} is not evenly divisible by localgroup size {" +
208+
"} is not evenly divisible by local work-group size {" +
209209
LocalWGSize + "}";
210210
if (!HasStd20)
211211
throw sycl::nd_range_error(

sycl/test/on-device/basic_tests/reqd_work_group_size.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ int main() {
9999
return 1; // We shouldn't be here, exception is expected
100100
} catch (nd_range_error &E) {
101101
if (string_class(E.what()).find(
102-
"Specified local size doesn't match the required work-group size "
103-
"specified in the program source") == string_class::npos) {
102+
"The specified local size {8, 8, 8} doesn't match the required "
103+
"work-group size specified in the program source {4, 4, 4}") ==
104+
string_class::npos) {
104105
std::cerr
105106
<< "Test case ReqdWGSizeNegativeA failed: unexpected nd_range_error "
106107
"exception: "

0 commit comments

Comments
 (0)