Skip to content

Commit ff09224

Browse files
committed
fix
1 parent f2a7e07 commit ff09224

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sycl/test-e2e/VirtualMem/basic_access_from_kernel_virtual_mem.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ int main() {
1717
sycl::context Context = Q.get_context();
1818
int Failed = 0;
1919
constexpr size_t NumberOfElements = 1000;
20-
size_t BytesRequired = NumberOfElements*sizeof(int);
21-
20+
size_t BytesRequired = NumberOfElements * sizeof(int);
21+
2222
size_t CtxGranularity = syclext::get_mem_granularity(
2323
Context, syclext::granularity_mode::recommended);
2424

25-
size_t AlignedByteSize = ((BytesRequired + CtxGranularity - 1) / CtxGranularity) * CtxGranularity;
25+
size_t AlignedByteSize =
26+
((BytesRequired + CtxGranularity - 1) / CtxGranularity) * CtxGranularity;
2627

2728
syclext::physical_mem NewPhysicalMem{Q.get_device(), Context,
2829
AlignedByteSize};

0 commit comments

Comments
 (0)