Skip to content

Commit a09c57f

Browse files
committed
formatting fixed
1 parent 1fd26ce commit a09c57f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

sycl/test-e2e/VirtualMem/basic_access_from_kernel_virtual_mem.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ int main() {
1616
constexpr size_t NumberOfElements = 1000;
1717
size_t BytesRequired = NumberOfElements * sizeof(int);
1818

19-
size_t UsedGranularity = GetLCMGranularity(Device,Context);
19+
size_t UsedGranularity = GetLCMGranularity(Device, Context);
2020

2121
size_t AlignedByteSize =
22-
((BytesRequired + UsedGranularity - 1) / UsedGranularity) * UsedGranularity;
22+
((BytesRequired + UsedGranularity - 1) / UsedGranularity) *
23+
UsedGranularity;
2324

24-
syclext::physical_mem NewPhysicalMem{Device, Context,
25-
AlignedByteSize};
25+
syclext::physical_mem NewPhysicalMem{Device, Context, AlignedByteSize};
2626
uintptr_t VirtualMemoryPtr =
2727
syclext::reserve_virtual_mem(0, AlignedByteSize, Context);
2828

sycl/test-e2e/VirtualMem/helpers.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ namespace syclext = sycl::ext::oneapi::experimental;
99
// Find the least common multiple of the context and device granularities. This
1010
// value can be used for aligning both physical memory allocations and for
1111
// reserving virtual memory ranges.
12-
size_t GetLCMGranularity(const sycl::device &Dev, const sycl::context &Ctx, syclext::granularity_mode Gm = syclext::granularity_mode::recommended) {
12+
size_t GetLCMGranularity(
13+
const sycl::device &Dev, const sycl::context &Ctx,
14+
syclext::granularity_mode Gm = syclext::granularity_mode::recommended) {
1315
size_t CtxGranularity = syclext::get_mem_granularity(Ctx, Gm);
1416
size_t DevGranularity = syclext::get_mem_granularity(Dev, Ctx, Gm);
1517

0 commit comments

Comments
 (0)