Skip to content

Commit eff9678

Browse files
RossBruntonAlexeySachkov
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 a7cac18 commit eff9678

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
@@ -32,7 +32,7 @@ int main() {
3232
sycl::queue queue;
3333
auto size = std::min(
3434
queue.get_device().get_info<sycl::info::device::max_work_group_size>(),
35-
1024ul);
35+
size_t{1024});
3636

3737
DataType *a = sycl::malloc_device<DataType>(size, queue);
3838
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
@@ -17,7 +17,7 @@ int main() {
1717
sycl::queue queue;
1818
auto size = std::min(
1919
queue.get_device().get_info<sycl::info::device::max_work_group_size>(),
20-
1024ul);
20+
size_t{1024});
2121

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

0 commit comments

Comments
 (0)