Skip to content

Commit d984042

Browse files
committed
Improve variable naming
1 parent 1781d5f commit d984042

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/include/syclcompat/memory.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ class mem_mgr {
228228
"[SYCLcompat] malloc: out of memory for virtual memory pool");
229229
}
230230
// Allocation
231-
sycl::range<1> r(size);
232-
buffer_t buf(r);
233-
allocation A{buf, next_free, size};
231+
sycl::range<1> buffer_range(size);
232+
buffer_t buf(buffer_range);
233+
allocation alloc{buf, next_free, size};
234234
// Map allocation to device pointer
235235
void *result = next_free;
236-
m_map.emplace(next_free + size, A);
236+
m_map.emplace(next_free + size, alloc);
237237
// Update pointer to the next free space.
238238
next_free += (size + extra_padding + alignment - 1) & ~(alignment - 1);
239239

0 commit comments

Comments
 (0)