Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
6b96d79f
Commit
6b96d79f
authored
2 years ago
by
Andreas Klöckner
Committed by
Andreas Klöckner
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add fold markers in wrap_mempool
parent
c57693f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/wrap_mempool.cpp
+13
-0
13 additions, 0 deletions
src/wrap_mempool.cpp
with
13 additions
and
0 deletions
src/wrap_mempool.cpp
+
13
−
0
View file @
6b96d79f
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment