Skip to content
Snippets Groups Projects
Commit 6b96d79f authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Add fold markers in wrap_mempool

parent c57693f4
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ namespace
};
// {{{ cl allocators
class cl_allocator_base
{
protected:
......@@ -210,8 +212,10 @@ namespace
}
};
// }}}
// {{{ allocator_call
inline
pyopencl::buffer *allocator_call(cl_allocator_base &alloc, size_t size)
......@@ -256,8 +260,10 @@ namespace
}
}
// }}}
// {{{ pooled_buffer
class pooled_buffer
: public pyopencl::pooled_allocation<pyopencl::memory_pool<cl_allocator_base> >,
......@@ -278,8 +284,10 @@ namespace
{ return ptr(); }
};
// }}}
// {{{{ device_pool_allocate
pooled_buffer *device_pool_allocate(
std::shared_ptr<pyopencl::memory_pool<cl_allocator_base> > pool,
......@@ -288,6 +296,9 @@ namespace
return new pooled_buffer(pool, sz);
}
// }}}
......@@ -398,3 +409,5 @@ void pyopencl_expose_mempool(py::module &m)
;
}
}
// vim: foldmethod=marker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment