We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1781d5f commit d984042Copy full SHA for d984042
sycl/include/syclcompat/memory.hpp
@@ -228,12 +228,12 @@ class mem_mgr {
228
"[SYCLcompat] malloc: out of memory for virtual memory pool");
229
}
230
// Allocation
231
- sycl::range<1> r(size);
232
- buffer_t buf(r);
233
- allocation A{buf, next_free, size};
+ sycl::range<1> buffer_range(size);
+ buffer_t buf(buffer_range);
+ allocation alloc{buf, next_free, size};
234
// Map allocation to device pointer
235
void *result = next_free;
236
- m_map.emplace(next_free + size, A);
+ m_map.emplace(next_free + size, alloc);
237
// Update pointer to the next free space.
238
next_free += (size + extra_padding + alignment - 1) & ~(alignment - 1);
239
0 commit comments