Skip to content

Commit dfbd9a7

Browse files
committed
better partition error
1 parent 8492254 commit dfbd9a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KernelAbstractions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ function partition(kernel, ndrange, workgroupsize)
209209

210210
if static_ndrange <: StaticSize
211211
if ndrange !== nothing && ndrange != get(static_ndrange)
212-
error("Static NDRange and launch NDRange differ")
212+
error("Static NDRange ($static_ndrange) and launch NDRange ($ndrange) differ")
213213
end
214214
ndrange = get(static_ndrange)
215215
end
216216

217217
if static_workgroupsize <: StaticSize
218218
if workgroupsize !== nothing && workgroupsize != get(static_workgroupsize)
219-
error("Static WorkgroupSize and launch WorkgroupSize differ")
219+
error("Static WorkgroupSize ($static_workgroupsize) and launch WorkgroupSize $(workgroupsize) differ")
220220
end
221221
workgroupsize = get(static_workgroupsize)
222222
end

0 commit comments

Comments
 (0)