Skip to content

Commit 48c72ea

Browse files
RossBruntonkurapov-peter
authored andcommitted
[SYCL][E2E] Use size_t rather than unsigned long in WorkGroupScratchMemory tests (intel#17100)
The max work group size is a `size_t`, rather than an `unsigned long`. This trips up older versions of MSVC where `size_t` happens to be `unsigned long long`.
1 parent f4d4d01 commit 48c72ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/test-e2e/WorkGroupScratchMemory/copy_dynamic_size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main() {
4545
sycl::queue queue;
4646
auto size = std::min(
4747
queue.get_device().get_info<sycl::info::device::max_work_group_size>(),
48-
1024ul);
48+
size_t{1024});
4949

5050
DataType *a = sycl::malloc_device<DataType>(size, queue);
5151
DataType *b = sycl::malloc_device<DataType>(size, queue);

sycl/test-e2e/WorkGroupScratchMemory/dynamic_unused.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main() {
3030
sycl::queue queue;
3131
auto size = std::min(
3232
queue.get_device().get_info<sycl::info::device::max_work_group_size>(),
33-
1024ul);
33+
size_t{1024});
3434

3535
DataType *a = sycl::malloc_device<DataType>(size, queue);
3636
DataType *b = sycl::malloc_device<DataType>(size, queue);

0 commit comments

Comments
 (0)