File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class kernel_impl {
103
103
typename info::param_traits<info::kernel, param>::return_type
104
104
get_info () const ;
105
105
106
- // / Query device-specific information from the kernel object using the
106
+ // / Query device-specific information from a kernel object using the
107
107
// / info::kernel_device_specific descriptor.
108
108
// /
109
109
// / \param Device is a valid SYCL device to query info for.
Original file line number Diff line number Diff line change @@ -54,12 +54,14 @@ int main() {
54
54
const size_t wgSizeNew =
55
55
krn.get_info <info::kernel_device_specific::work_group_size>(dev);
56
56
assert (wgSizeNew > 0 );
57
+ assert (wgSize == wgSizeNew);
57
58
const size_t prefWGSizeMult = krn.get_work_group_info <
58
59
info::kernel_work_group::preferred_work_group_size_multiple>(dev);
59
60
assert (prefWGSizeMult > 0 );
60
61
const size_t prefWGSizeMultNew = krn.get_info <
61
62
info::kernel_device_specific::preferred_work_group_size_multiple>(dev);
62
63
assert (prefWGSizeMultNew > 0 );
64
+ assert (prefWGSizeMult == prefWGSizeMultNew);
63
65
const cl_ulong prvMemSize =
64
66
krn.get_work_group_info <info::kernel_work_group::private_mem_size>(dev);
65
67
assert (prvMemSize == 0 );
You can’t perform that action at this time.
0 commit comments